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: 

SAC - EnumerationExample

3 REPLIES 3
Reply
Message 1 of 4
Civil3DReminders
198 Views, 3 Replies

SAC - EnumerationExample

I tried to use the EnumerationExample in Civil 3D. It keeps giving me this error:

 

Type: ErrorDate: 8/22/2011Time: 2:28:11 PMSource: RoadwayUser: JunkDrawerDescription:  [FooterWidth (Double): 302 : Value cannot be null.Parameter name: ItemName]  (Source: Subassembly.EnumerationExampleEnumerationExample - (27))

 

Is this error message particular to my computer or are others experiencing it also?

 

Christopher

3 REPLIES 3
Message 2 of 4

I believe Peter said this is a known issue.
Matt Kolberg
SolidCAD Professional Services
http://www.solidcad.ca /
Message 3 of 4

To get this to work one has to convert the enumeration to a string value and then use the string value in the switch. When converting the enumeration to a string use something like this:

 

BarrierString

If(Barrier=A,"A",If(Barrier=B,"B",If(Barrier=C,"C",If(Barrier=D,"D","D"))))

 

It's an extra step, but it gets it to work.

 

Christopher

Message 4 of 4

Nice fix.
Matt Kolberg
SolidCAD Professional Services
http://www.solidcad.ca /

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

Post to forums  

Rail Community


Autodesk Design & Make Report