REF COMPONENT Property Script
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-03-16 04:10 PM
‎2005-03-16
04:10 PM
"REF COMPONENT code [, keycode [,
numeric_expression]]
Reference by code and keycode string to a component in an external database. The value to multiply by in the component database can be overwritten by the optional numeric expression specified here"
I have tried several different combinations with my numbers to get this script to work and can not figure out what I am doing wrong. See Below:
IF beam_size='4x6' THEN
IF a<8.00 THEN
REF COMPONENT X31040608 , 80000
ENDIF
Everytime I run a check script I get an error, the one above requests a string type expression.
Any help would be greatly appreciated. Thanks.
Barry Halloran
12 REPLIES 12
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-03-18 01:09 PM
‎2005-03-18
01:09 PM
Karl,
After some work on it, I finally figured out that I had missed that endif statement. Thanks again for your help. Maybe once i get more advanced I will rewrite the script as you had previously suggested, it is very long but it works.
Barry
After some work on it, I finally figured out that I had missed that endif statement. Thanks again for your help. Maybe once i get more advanced I will rewrite the script as you had previously suggested, it is very long but it works.
Barry
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-03-19 12:52 AM
‎2005-03-19
12:52 AM
Karl,
Just an update to the script. I have evolved what you had shown me and added a few thinsg to it. By using if then statements I have made the part even more intuitive, I added calculations using gdl global parameters to the REF COMPONANT command. See Below:
IF joist_size="2x4 Blocking" THEN
REF COMPONENT "X40020416" , "200" , (((SYMB_A_SIZE*3.2808)/16)*1.10)
ENDIF
The above script calculates the 2x4x16 Blocking the 1.10 is to add a 10% overage. Granted the script may not be efficient but it works. If I am able to figure out how to string script, I will go back and rewrite it. This command has made a HUGE difference in the way I will build parts for my Bill of Materials, I am able to take a lot of the responsibility off of the "Drafter" and put it in the program. Thanks again.
Barry
Just an update to the script. I have evolved what you had shown me and added a few thinsg to it. By using if then statements I have made the part even more intuitive, I added calculations using gdl global parameters to the REF COMPONANT command. See Below:
IF joist_size="2x4 Blocking" THEN
REF COMPONENT "X40020416" , "200" , (((SYMB_A_SIZE*3.2808)/16)*1.10)
ENDIF
The above script calculates the 2x4x16 Blocking the 1.10 is to add a 10% overage. Granted the script may not be efficient but it works. If I am able to figure out how to string script, I will go back and rewrite it. This command has made a HUGE difference in the way I will build parts for my Bill of Materials, I am able to take a lot of the responsibility off of the "Drafter" and put it in the program. Thanks again.
Barry

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2005-03-19 04:31 AM
‎2005-03-19
04:31 AM
Thanks, Barry. Glad I could help.
Karl
Karl
AC 28 USA and earlier • macOS Sequoia 15.4, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »