Dialog Box

  Hello

 

I would like to create a dialog box that will open when opening a typical sheet metal part (example: a box with 3 plies).

 

This box will retrieve the global or other variables that I want to modify easily.

 

This will save me from having to go to the equations folder (which is often unreadable) and will save me time.

 

Is it easy to implement?

 

And if so, how?

 

Thank you in advance.

 

The best thing to do is to create a macro that handles the modification of the part

by providing the names of the call numbers on the model documents

The user would click on the edit button that would display the dialog box, and manage the dimension value change and reconstruction

 

a more complex operation would go through a SW event detection, this requires the creation of an addin, really not easy to implement

5 Likes

In a family of rooms it doesn't do it for you?

once you've made a part and set it up well

Just edit to create a new model

@+ ;-)

2 Likes

With a family of parts, I have to open an excel doc, right?

 

I had done this a long time ago, but I don't remember how to do it...

 

How do I create a macro like this? (I'm a novice in VBA programming)

See these links

 http://www.lynkoa.com/tutos/3d/famille-de-pieces-solidworks

http://www.lynkoa.com/tutos/3d/solidworks-faire-une-famille-de-pieces-des-profiles-hea

http://www.lynkoa.com/tutos/th%C3%A9matiques-avanc%C3%A9es-les-familles-de-pi%C3%A8ces-dans-solidworks

http://www.lynkoa.com/tutos/t%C3%A9l%C3%A9charger-le-qcm-sur-les-familles-de-pi%C3%A8ces

http://www.lynkoa.com/tutos/cr%C3%A9er-des-propri%C3%A9t%C3%A9s-%C3%A0-partir-de-famille-de-pi%C3%A8ces

 

You open your room and if you have Excel it's integrated into your feature manager created room family

http://help.solidworks.com/2013/french/SolidWorks/sldworks/c_Design_Table_Configurations.htm

@+ ;-)

1 Like

If the configuration solution suits you, as proposed @GT22 there is the Excel sheet (integrated into the sldprt), but you can also limit yourself to ordering the "Configure the function" accessible by right-clicking on a function.

 

At the beginning it just gives you the possibility to manage the deletion state of the function. But you can add columns by double-clicking on other functions, or even by double-clicking on a volume and selecting dimensions.

 

Once you have obtained this mini table, you can save it to reissue it later. It will appear in Configuration Manager in the same place as an Excel part family.


screenshot041.jpg
3 Likes

Thank you for all your answers.

 

I would simply like that when I open this "typical" part, a dialog box opens at the same time or even an icon to launch this dialog box.

 

it would ask me questions such as length, width, depth, checkboxes to manage functions such as "back fold" etc...  

 

Driveworks can do it, but it doesn't open a dialog box it seems to me...

 

 

Here's a macro example plus example piece

 

 


boite.zip
5 Likes

Just match the names of the dimensions and fields as in the following screenshot


capture.jpg
5 Likes

Hello Jfaradon.

 

I downloaded your macro, but when I launch it with the coin open, nothing happens.

 

Sorry I'm a novice in macro....

Tests with this one

normally a dialog box appears and you can modify the dimensions ...  


boite_2.zip
3 Likes

It's a simple example to adapt to your model pieces

4 Likes

  Hello

 

That's exactly what I want! ^^

 

All that's missing is the explanations =)

 

Thank you Jfaradon

On the other hand, a little info, when unfortunately, I launch the macro without having opened the room,

 

Unable to close the dialog box!! except by doing a ctrl+alt+delete...