AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
*Expert Elite*
klugb
Posts: 696
Registered: ‎09-04-2008
Message 1 of 5 (295 Views)
Accepted Solution

SAC-Enumeration_Example

295 Views, 4 Replies
11-09-2011 08:27 AM

All,

I was looking through the "Enumeration_Example" file and want to create a similar one but wasn't sure how they setup an input parameter.

 

How did they set the Barrier type to "BarrierType"?

 

Also does the list for default Value come from the switch? It's A,B,C or D in the example, but I tried to switch it to 1,2 or 3 after the switch without luck.

 

Thanks

Bruce Klug
AutoCAD Expert Elite
AutoCAD Civil 3D 2014 Certified Professional
Infrastructure Design Suite 2014 (SP2)
Testing Civil 3D 2015
Win 7 Pro, 64-bit

The BarrierType was defined by going to the View menu and selecting Define Enumeration. There you can create the Enumeration Group (ex. BarrierType) and the Enumeration Items (ex. A, B, C, D)

*Expert Elite*
KMercier_C3D
Posts: 255
Registered: ‎12-14-2010
Message 2 of 5 (293 Views)

Re: SAC-Enumeration_Example

11-09-2011 08:31 AM in reply to: klugb

The BarrierType was defined by going to the View menu and selecting Define Enumeration. There you can create the Enumeration Group (ex. BarrierType) and the Enumeration Items (ex. A, B, C, D)

Kati Mercier, P.E.

Co-author of "Mastering AutoCAD Civil 3D 2013"
AutoCAD Civil 3D 2013 Certified Professional and AutoCAD 2013 Certified Professional
AU2012 Speaker::: CI3001: Reverse Engineering with Subassembly Composer for AutoCAD Civil 3D
AU2011 Speaker::: CI4252: Create Subassemblies That Think Outside the Box With Subassembly Composer for AutoCAD® Civil 3D®
*Expert Elite*
klugb
Posts: 696
Registered: ‎09-04-2008
Message 3 of 5 (289 Views)

Re: SAC-Enumeration_Example

11-09-2011 09:01 AM in reply to: KMercier_C3D

Great,

 NOW I know what I'm looking for I found it in the help files.

 

Thanks

 

Bruce Klug
AutoCAD Expert Elite
AutoCAD Civil 3D 2014 Certified Professional
Infrastructure Design Suite 2014 (SP2)
Testing Civil 3D 2015
Win 7 Pro, 64-bit
*Expert Elite*
klugb
Posts: 696
Registered: ‎09-04-2008
Message 4 of 5 (278 Views)

Re: SAC-Enumeration_Example

11-09-2011 01:10 PM in reply to: KMercier_C3D

Ok, now I have a different issue.

 

I have been getting errors with my version of the subassembly that I built from the example. I went back and tried the original one and still get the same errors so it's either my computer or the code has always had an issue.

 

Have you (or anyone else watching) used the "Enumeration_Example.pkt" downloaded from Autodesk?

 

I get " [FooterWidth (Double): 301 : Value cannot be null." error message.

 

Thanks

 

Bruce Klug
AutoCAD Expert Elite
AutoCAD Civil 3D 2014 Certified Professional
Infrastructure Design Suite 2014 (SP2)
Testing Civil 3D 2015
Win 7 Pro, 64-bit
*Expert Elite*
klugb
Posts: 696
Registered: ‎09-04-2008
Message 5 of 5 (271 Views)

Re: SAC-Enumeration_Example

11-09-2011 02:12 PM in reply to: klugb

Never mind, found it. It was an issue with the original code:

 

http://forums.autodesk.com/t5/forums/forumtopicprintpage/board-id/66/message-id/158355/print-single-...

Bruce Klug
AutoCAD Expert Elite
AutoCAD Civil 3D 2014 Certified Professional
Infrastructure Design Suite 2014 (SP2)
Testing Civil 3D 2015
Win 7 Pro, 64-bit
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.