Software Use > Scripting

Linking materials

(1/2) > >>

Ruben:
Hello,

Is there a way to link top and bottom materials using the COM interface? I can set it as a database default, but wondering if it was possible to set it differently for different assemblies.
Also, is there a 'Copy to all components' function, so that if I set up the materials and variables of the first component, all other components are also set, without having to go through each one? Or is it just as quick to set each one?

Thanks,
Ruben

James:
In the HyperSizer interface there are many ways to apply the component setup to all components in an assembly. The "copy to all components" is one option, you can also right-click on any field in the dimensions tab and apply just that selection to all components. Additionally, there are design templates which allow you to store dimensions, materials, load factors, active failure modes, etc. and apply them to components, assemblies and display sets. Applying settings to display sets allows you to specify settings for components in different assemblies.

Templates are very useful for setting up large projects, here is some help documentation about templates: http://hypersizer.com/help_7.2/#Templates/tp-about.php%3FTocPath%3DFeatures%7CTemplates%7C_____1

I'm not sure if templates can be applied via the COM interface.

-James

Ruben:
Hi James,

With reference to 'Copy to All', I know about the right-click mouse button option, I was wondering if this was available in the COM interface, as currently I set up each component of an Assembly individually. I was thinking there would be some time saving by setting the first one and then to use some applyToAll function within the COM interface.
This would allow each assembly to have different materials and different bounds, but if they all were the same then a template would work.

Ruben

Ryan:
Hi Ruben,

There's no apply-to-all functionality in the scripting API. There is one exception Assembly.SetGroupConcepts. Templates are not exposed either.

There's no support for linking materials within a concept in the scripting API. We do support single variable linking with ConceptVariable.LinkVariable and full linking Group.LinkDesign.

Thanks,
Ryan

Christian W.:
Could you give a code example?
I tried  both examples (ConceptVariable.LinkVariable and full linking Group.LinkDesign) and it had no effect.

Navigation

[0] Message Index

[#] Next page

Go to full version