block name = solid name

block name = solid name

Anonymous
Not applicable
362 Views
1 Reply
Message 1 of 2

block name = solid name

Anonymous
Not applicable

hi

can this be done in vba?

see attached image..solid.png

0 Likes
363 Views
1 Reply
Reply (1)
Message 2 of 2

philippe.leefsma
Alumni
Alumni

Hi,

 

Should be doable. You can set the name of a body using "SurfaceBody.Name" property. From your quick description, it is hard to figure out what would be your workflow. Do you want to prompt the user so he can select a block or do you want to parse the existing blocks...? Both approaches are possible. It is however not possible to automatically bind the name of the solid to the name of the block, if that's what you meant. You would need to run the code each time the block name is modified, so it can update the name of the solid. Maybe a modeling event will be fired if the block name is modified, so you could use that to do the update.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes