Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Expression paramters vacate expression upon file new and startup

10 REPLIES 10
Reply
Message 1 of 11
Joe-Bouza
574 Views, 10 Replies

Expression paramters vacate expression upon file new and startup

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?

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People)

HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win10 OS
10 REPLIES 10
Message 2 of 11
tcorey
in reply to: Joe-Bouza

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.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 3 of 11
Joe-Bouza
in reply to: tcorey

Hi Tim,

 

Thanks for the confirmation.

 

Hows that scrpit go?

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People)

HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win10 OS
Message 4 of 11
SurveyorLee
in reply to: Joe-Bouza

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

Message 5 of 11
Joe-Bouza
in reply to: SurveyorLee

Thats {Floor Thickness} its a OOTB pipenetwork parameter. I'm sure its there to start with

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People)

HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win10 OS
Message 6 of 11
tcorey
in reply to: Joe-Bouza


@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



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 7 of 11
tcorey
in reply to: tcorey

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.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 8 of 11
Joe-Bouza
in reply to: tcorey

I look forward

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People)

HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win10 OS
Message 9 of 11
tcorey
in reply to: Joe-Bouza

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.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 10 of 11
Joe-Bouza
in reply to: tcorey

Hi Tim

 

I'm not following the startup script you speak of. I need to create it? what is the DeleteMe.dwt ?

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People)

HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win10 OS
Message 11 of 11
tcorey
in reply to: Joe-Bouza

 

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.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report