Jump to content
Mr. Vahid Jafari

Rename objects in a feature

Recommended Posts

Hey guys,


Is it possible to rename an object in feature programming (e.g. in a loop)?


Here, I have a bsplinecurve called "tmp" in the picture post-1090-0-70559700-1552039168_thumb.png and I want to give it an appropriate name. I just used the function "setName()" to rename it, but it doesn't seem to work, despite getting no error. The curve still has the name "tmp" post-1090-0-25326000-1552039176_thumb.png. So how can I get to rename the curve in my feature?



Thank you very much in advance




Share this post

Link to post
Share on other sites

Hi Vahid,


I am sorry but within a Feature it is not possible to rename an already created object.

In the Feature definition the objects are named during compile time only.


Maybe you would like to do workaround by creating an imagecurve with the name you would like to assign.




Share this post

Link to post
Share on other sites

Another option is to use an entitygroup to store your curve with the name you want. 
Then when accessing the entity group you can check for the name of the object with an if statement and get all the information from the curve.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...