This is my expression in my dwt file:
IF({Floor Thickness}=0.5,0,IF({Floor Thickness}=3.0,{Insertion Rim Elevation}-2.67,IF({Floor Thickness}=5.5,{Insertion Rim Elevation}-5.5,0)))
This is the same expression upon startup:
IF(=0.5,0,IF(=3.0,{Insertion Rim Elevation}-2.67,IF(=5.5,{Insertion Rim Elevation}-5.5,0)))
If I use file new or the new icon I get wahts in the dwt file.
Any ideas what going on here?
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Joe, I tested it and I can confirm the behavior you're describing. I tested it by specifying the template in the target line of my shortcut, but it gave the same results.
And, like you described, when you load the program and then start a new drawing using the template, the expresssion display exactly as you typed it in.
You could work around this with a startup script or using acaddoc.lsp.
Hi Tim,
Thanks for the confirmation.
Hows that scrpit go?
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
In the startup setting, is Finished FLoor defined and initialized? That could be why it kicks it out.
In the template dwg, you have defined it.
Surveyor Lee
Thats {Floor Thickness} its a OOTB pipenetwork parameter. I'm sure its there to start with
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
@Joe-Bouza wrote:Hi Tim,
Thanks for the confirmation.
Hows that scrpit go?
Hi Joe,
The contents of the script file are:
new "C:\Users\timc\AppData\Local\Autodesk\C3D 2013\enu\Template\_DeleteMe.dwt"
I tested this solution and your expression remains intact if you run this startup script. In case you don't know how to specify the startup script, you can add it as the last parameter on the target line of your startup icon. Here is my target as an example:
"C:\Program Files\Autodesk\AutoCAD Civil 3D 2013\acad.exe" /ld "C:\Program Files\Autodesk\AutoCAD Civil 3D 2013\AecBase.dbx" /p "<<C3D_Imperial>>" /s "C:\Users\timc\Documents\_Support\UserGroup\20130122\startup.scr"
I used the bold italics so you can see the part I added for the script
Best regards,
Tim
Hold on a minute. I tested with the script command and the script works, but I forgot to test the shortcut and it's not working. Doh.
I'll post once I get it right.
I look forward
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Wow, dumb mistake. The /s I used on the target line should be /b:
/b "C:\Users\timc\Documents\_Support\UserGroup\20130122\startup.scr"
Works like a charm.
Hi Tim
I'm not following the startup script you speak of. I need to create it? what is the DeleteMe.dwt ?
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
A script file is a text file with a .scr extension. Edit it with Notepad.
In it you place AutoCAD commands with options and inputs as though you are running the program through the keyboard. You will create a script file and include the contents I showed. The reference to _DeleteMe.dwt is the answer to AutoCAD's request for a template name when you use the command line version of the New command. Replace with your dwt filename and path. The line I used is an example from my station.
The /b switch on the target line of the shortcut tells AutoCAD which script file to run at startup. Replace the path and script file name with your exact information.