Macro / Script for Valve Gate Controller

Macro / Script for Valve Gate Controller

brian6V3ZM
Contributor Contributor
735 Views
4 Replies
Message 1 of 5

Macro / Script for Valve Gate Controller

brian6V3ZM
Contributor
Contributor

Is there a way to reference a Valve Gate Controller in a script?  

 

When selecting nodes and triangles, the recorded macro will have entities listed

Ex.      EntList.SelectFromString "T18418 T18423 T18424 T18429 T18430 "

 

When selecting a Valve Gate Controller, the entity list is blank, and only beam shows up in the selection window

Ex.      EntList.SelectFromString ""

0 Likes
Accepted solutions (1)
736 Views
4 Replies
Replies (4)
Message 2 of 5

adevadkar
Advocate
Advocate

HI  @brian6V3ZM ,
You can use 
Set VGProp = PropEd.FindProperty(30030, VGno.)     to Get the Valve Gate Controller
VGProp.name to Get the Valve Gate Controller Name
VGProp.ID to Get the Valve Gate Controller ID

Thanks & Regards,
Anirudha D

(If my comments are accepted, provide "Kudos" as appreciation. If your request is answered/resolved, please click the "Accept as Solution" button. Thanks.)



0 Likes
Message 3 of 5

brian6V3ZM
Contributor
Contributor

Thank you for your reply, but I am still not understanding how to reference a specific controller.  For example to simply delete a controller.

To delete a triangle #T78367, my script macro is this:

Set EntList = MeshEditor.CreateEntityList()
EntList.SelectFromString "T78367 "
Set EntList_1 = MeshEditor.Delete(EntList)

 

What would be in the quotes for the controller if it has ID = 2 and name is VG-2

 

0 Likes
Message 4 of 5

adevadkar
Advocate
Advocate
Accepted solution

Hello  @brian6V3ZM ,
In moldflow you cannot delete the controller, it is associated with the beam element, you can't delete it you are allowed to modify only. (Through Automation). You can do it manually

adevadkar_0-1724050540693.png

 


Delete all the beam (not curve) associated with the valve gate controller and remesh the study to generate new beams.

Thanks & Regards,
Anirudha D

(If my comments are accepted, provide "Kudos" as appreciation. If your request is answered/resolved, please click the "Accept as Solution" button. Thanks.)
0 Likes
Message 5 of 5

brian6V3ZM
Contributor
Contributor

OK, thanks so much for the reply.

0 Likes