Insert global variables into a table

Hi all

I have recently set up "generic" tank models thanks to global variables.

However, I am now looking to insert these variables to a table in the 3D file, to be able to make it easier to check the measurements, and the rigor, if possible, to be able to directly change the variables through this table without entering the Equations tab of the FeatureManager.

Thank you to you who will answer me. :)

Have a good day/evening

Hello;

If you expect an editable "table" display in your 3D (like for a 3D nomenclature) I don't think it's possible.
The alternatives to your request would be (in my eyes):


- Use of the "Configuration Publisher"


- Or via an excel table for import/export of your quote: see the macro available on this site (Lynkoa):
https://www.lynkoa.com/contenu/piloter-des-cotations-a the dune-macro helper
(Warning : this macro is from 2015 .... is not updated by Visiativ (Axemble at the time) since .)

- If you are talking about an Assembly (for your Tank - it is not specified in your request-) there is, possibly, "Pilot Assembly" published by Visiativ too (probably available on Lynkoa too).


- There is still the possibility to create an interface in VBA / Userforms but it will depend on your level in Macro / API...
 

... a small example (screenshot) of your "Generic" Tank and the Equations to be managed/controlled/modified would be welcome.
Kind regards.

1 Like

Hello

Here's a screenshot of the tank and equations to get started.

My Macro/API skills? Very little so I think I'll drop this way...

The tank is not made of assembly so it is not possible to use "Pilot Assembly".

So all I have to do is dig into the Configuration Publisher as well as the macro you are talking about.

I will keep you informed of what is happening.

Kind regards. :)

 


equation_et_cuve.png

A roundabout way but one that risks calling into question the work already done: making a 3D sketch whose dimensions serve as global variables.

I propose a 3D sketch rather than a 2D one to have a more "instinctive" visualization.

2 Likes

In fact, the dimensions are related to the global variables on my 2D sketches, so by the equations tab my dimensions follow according to the value I can change in the "Value/equation" column. So for that it's perfect, especially since I'm reworking the settings for even more options on another version, so I'm not going to lie to you that it would bother me a little to have to start all over again. ^^

That said, I'm not necessarily looking for the link between the global variables and my odds since it's already the case, but mainly a display in the 3D model of all these equations in a table. This would allow us to check our quotations more quickly. So there must be a link from the equations to this table so that it keeps the data and updates it according to them.

Only even after fiddling around in the Configuration Publisher, I can't find much or by taking a closer look at the Lynkoa Macro that Maclane provided me.

Unfortunately I've been looking for a solution for a while, and as it's only "comfort" I don't prioritize this option, I'll continue to look from time to time to see if I find something.

Yours truly:)

 

1 Like

Hello

Have you thought about using Driveworks express?

Hello Dominique,

To answer your question, well no, because I hadn't heard of this software, I'll look into it to see.

Thank you;)

It's a free SolidWorks add-on: "DriveWorksXpress"

https://www.visiativ-solutions.fr/video-driveworksxpress-solidworks/

And in the SolidWorks tutorials there is an example

 

Hello

It seems to me that an Excel part family can solve your problem.

All your odds will therefore be in the same table.

You can also put equations in excel (to automatically calculate the number of ribs for example)

It is also possible to repatriate the Excel table of the part family into the MEP (it's quite moldy as a feature though: it's quite difficult to get the desired visual rendering).

 

1 Like

Hello @MChup,

The attached macro could meet your initial request, allowing you to modify the global variables of a SolidWorks part model , variables previously created in the Equations branch of the construction tree.

Double-clicking on a variable in the list causes the input box for its new value to appear.
The Edit button allows you to apply the change in the list and in the Equations window, and to immediately see the effect on the geometry by "rebuilding" the model. This is the only advantage over the SolidWorks Equations page...
The change applies either to the active config or to all the configs of the template depending on the checkbox.

As always, macro use with caution, it has only been tested on the attached model resembling your tank (SW 2019). And there are very few safeguards.

Kind regards.


variablesglobales.zip
2 Likes

Hello;

Nice macro m.blt, And commented on it .... class!.
Kind regards.