MoI discussion forum
MoI discussion forum

Full Version: V5 beta Apr-27-2026 available now (Sticky)

Show messages:  1-18  19-25

From: pressure (PEER)
23 May   [#19]
Thank you for the all these new features, bug fixes, and scripting additions!
From: Marc (TELLIER)
2 Jun   [#20]
Thanks for the update Michael !

Marc
From: fcwilt
15 Jun   [#21]
Hi,

I don't know if this has been suggested but I will post this anyway.

I use groups to separate different versions of the same set of parts. All the parts that make up version 1 of some assembly, in one group, all the parts for version 2 into another group, etc..

I would like to see a feature where a group (via the group header) could be assigned some information, such as a version number.

Then for each item within the group, when setting the name, you could use as tag like %V which would be replaced with the version number.

This would mean when creating a new version I would only have to copy the group and set an appropriate version number for the group and all of the parts in the group would display the new version number.

This would be a great help to me as now have to edit the name of each part in the group.

Frederick
From: Michael Gibson
15 Jun   [#22] In reply to [#21]
Hi Frederick,

re:
> I would like to see a feature where a group (via the group header) could be
> assigned some information, such as a version number.

I think there are enough pieces in place to do this now.

The "assign some information" is done by selecting the top level group, push the "Details..." button, and in the Object properties dialog expand the "Object user text" section and add in a new entry, for the Key part put in "fcwilt_version" for the value part put in your version number.

So looks something like this:



For this part:
> Then for each item within the group, when setting the name, you could use as tag like %V which would be replaced with the version number.

On each child item inside the group you could assign a user text of fcwilt_name_template and give it a value with a %V in it, like: "The version is %V".

Then you need a script that when triggered will go through all top level groups and if it has a fcwilt_version data chunk in the top level group's object user text the script will go through the child objects of the group and any child that has a fcwilt_name_template it will evaluate the template replacing the %V and then set the object name to the resolved text.

If that sounds like it does what you need I can cook up the update script for you , it should not be very difficult.

That's what the Object user text is for, so scripts have a channel to store data that is for their own needs which gets saved and loaded. There is also document level user text you can find under File > Notes > Document user text.

- Michael

Image Attachments:
group_user_text.png 


From: fcwilt
17 Jun   [#23] In reply to [#22]
Hey Michael,

You never cease to amaze.

I would like to see such a script as it does sound like it may well do the job.

I don't quite fathom how a "tag" in the name will get replaced without losing the tag needed for a any subsequent version.

I was thinking that the tag would have to be kept in the entered name but any time the "complete" name was needed for display, export, etc. the replacement would happen behind the scenes

Thanks much.

Frederick
From: Michael Gibson
18 Jun   [#24] In reply to [#23]
Hi Frederick,

re:
> I don't quite fathom how a "tag" in the name will get replaced without losing the tag
> needed for a any subsequent version

The "tag" would need to be stored separately from the name, in a user text slot.

But it looks like there is a bug with setting user text on groups, it looks like that will need to be cleared up first before this will work.

- Michael
From: fcwilt
18 Jun   [#25] In reply to [#24]
Hi Michael,

Thanks for the feedback.

Frederick

Show messages:  1-18  19-25