Creating a custom ID from multiple parameters
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-10-24 08:29 PM
‎2017-10-24
08:29 PM
I've been struggling with scheduling a custom object lately. It's a fire sprinkler, and I use a schedule as the legend of my drawings.
It has seven parameters which define the sprinkler type, and right now I have nine columns in my schedule (2D preview, the 7 parameters and quantity).
Is there any way to generate an ID from the seven parameters, so that my schedule only contains three columns?
My solution right now has an awful lot of gaps in the text

4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-10-24 11:18 PM
‎2017-10-24
11:18 PM
I think you can get shaft you want using Ifc dats mapping
AC27 latest hotfix
Win 10 Pro 64bit
Double XEON 14 CORES (tot 28 physical cores)
32GB RAM - SSD 256GB - Nvidia Quadro K620
Display DELL 25'' 2560x1440
www.almadw.it
Win 10 Pro 64bit
Double XEON 14 CORES (tot 28 physical cores)
32GB RAM - SSD 256GB - Nvidia Quadro K620
Display DELL 25'' 2560x1440
www.almadw.it
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-10-25 07:41 AM
‎2017-10-25
07:41 AM
There is no way to get such an ID, with a code in the master script for example?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-10-25 08:43 AM
‎2017-10-25
08:43 AM
You already have the 7 parameters in the object.
Create a new one (in the master or parameter script) that is an amalgamation of those 7 - i.e. new_parameter = parameter 1 + parameter 2 + parameter 3, etc.
PARAMETER new_parameter = new_parameter
If any of them are numerical parameters rather than strings you will need to convert them to a string value.
You can control the spacing between the names by adding new_parameter = parameter 1 + " "+ parameter 2 + " " + parameter 3, etc.
Or new_parameter = parameter 1 + "-"+ parameter 2 + "-" + parameter 3, etc.
Then just schedule the new parameter rather than all 7.
Barry.
Create a new one (in the master or parameter script) that is an amalgamation of those 7 - i.e. new_parameter = parameter 1 + parameter 2 + parameter 3, etc.
PARAMETER new_parameter = new_parameter
If any of them are numerical parameters rather than strings you will need to convert them to a string value.
You can control the spacing between the names by adding new_parameter = parameter 1 + " "+ parameter 2 + " " + parameter 3, etc.
Or new_parameter = parameter 1 + "-"+ parameter 2 + "-" + parameter 3, etc.
Then just schedule the new parameter rather than all 7.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2017-10-25 07:04 PM
‎2017-10-25
07:04 PM
Thank you very much! It works perfectly
