from Civil to Inventor

The Autodesk enthusiast exile

Civil 3D – Part Builder Part 6

Back to Part 5

Backup your model

Before we begin, I seriously and strenuously suggest you back up your model.  Don’t do the saveas (which is fine I suppose), but instead use Windows explorer to copy the .DWG and .XML files to a backup location. The VISTA path to these items is C:\ProgramData\Autodesk\C3D 2009\enu\Pipes Catalog\US Imperial Structures\Inlet-Outlet-Custom\

Map the User Parameters to the Application

You may remember the parameters that were handed down when we verified the structure a few sessions ago.  These ‘handed down’ parameters are those that the application uses in it’s controls, and were assigned when we used the Part Configuration Undefined Bounding Shape.  Without these, the structure cannot be modified. These parameters are SHBTh, SHBW, and SVPC, which are the Thickness, Base Width, and the Vertical Pipe Clearance respectively. We used the user parameters (like bThick) to buffer our equations from the application controls, and to make it easier to understand when reading the parameter list.  When we go back to make changes, we can disconnect the application parameters, and toy with our user parameters, and then attach them when we are done.

Let’s set these values before we proceed farther.  Edit the Model Parameters as follows:

SHBTh = 6

SHBW = 24

SVPC = 24

Now we have given something solid to these values, we can map these to the user parameters we created.

bThick = SHBTh

bWidth = SHBW

Now that the parameters have been set, we need to change the bounding shape to be a box.  Right now, the application will only display the structure as a 3D solid, and many styles will not display

this.  To simplify your model in some cases, we need the bounding shape to be a box.

Expand the Part Configuration, Right click the Undefined Bounding Shape at the bottom of the collection, and change it to Box.

image

Now pick the Validate button from the toolbar (the stoplight). Once completed, the application will add 3 other parameters, to control the ‘Box’ that is displayed in the 2D view styles. These are SBSH, SBSL, and SBSW, which are Structure Box Shape Height, Length, and Width respectively.  Let’s edit these in the Model Parameters, so that they are useful, and tied into our system.

Edit the Model Parameters as shown:

SBSH = 36

SBSL = SHBW

SBSW = SHBTh

Now that that has been accomplished, change the bheight value:

bHeight = SBSH

Your parameters should look something like this.

image

Save the part.

Size parameters

This is where it really begins to become painful.  Sometimes the application will not allow you to change things the way you want.  Be patient.  This area is what gets published to the XML file, that ultimately is the catalog.  Ranges and lists get created here. I’ll skip through the hooplah, and get you right to it.

right click the Size Parameters, and select Edit Configuration

The following Dialog shows up, representing all the Model Parameter settings we have made so far.

image

I have already made some further changes, so I will walk you through these.

Data Storage is how you will access the information.  Range is a range of options, List is a list of options, Calculation is something resulting from another variable, and Constant is a static value.  The visible items appear in the Part Properties. 

[TIP*: Once the model is working properly, turn the Visibility for as many of these off as possible.  It gets annoying reading support parameters in the structure properties.]

Make the following changes:

SHBW->Data Storage = Range/ Visible = True

SBSH->Data Storage = Range/ Visible = True

Now select the Parameter Configuration pull down button at the top, and select Value.  The dialog will arrange itself with he value of each field.  IF IT DOES NOT DISPLAY THE VALUES, GO BACK AND CHECK YOUR MODEL PARAMETERS, something got screwed up.  The odds are that something in the recent Program Parameters has been cross linked.  Sometimes you can save the part, leave and reenter part builder, and go back into Size Parameters->Values, and they will be there.  Another good solution is to disconnect the ‘bUser’ variables, and give them static numbers, as well as the Program Parameters.  Then go back to the Size Parameters and check the values again.  Eventually it will let you in.  Then you simply troubleshoot one variable at a time.  If you do get locked out of the values, revert all configured Ranges and Lists back to Constant.  Validate the part, and save out of the part builder.  Get back to where you can start THIS session over, and go a bit more slowly.  Another option is, after resetting the User parameters, is to delete the Program parameters, and re-validate them in.  Don’t worry, if you save the backup when I mentioned it, you have not lost anything.

image

Double click on the SHBW value, and the dialog will appear allowing the MIN, MAX, and Default values to be input for the range. 

MIN = 24, MAX = 300, Default = 36

Double Click on the SBSH value, and change the settings as follows:

MIN = 24, MAX = 120, Default = 36

Notice the small green and yellow button that has activated next to the values pull down button.  Select this to send the changes we made back to the Model Parameters (because we changed the default values from 24 to 36).  The model will update.

Save the part.

Bitmap preview

The catalog will display a preview image for your use in the Civil 3D application.  We generate this by selecting the Generate Bitmap button from the toolbar. A selection of views is available to choose from, (I like isometrics). When satisfied, pick OK.  The Bitmap will appear when choosing the structure.

NOTE: The bitmap may appear accurate, but this only means that the modeling was completed correctly.  This is absolutely no guarantee that the model will be successfully implemented by the application.  This is very obvious when modeling in non-orthogonal planes.

Hit the validate button again and save the part, and close it out.

XML

This is where things get weird.  Even though you have selected the range values and program parameter values, the application rarely saves the values to the XML file accurately.  We need to go do some surgery.

Navigate to the Program Data (VISTA) location where your catalogs are stored, and open the respective XML for the structure you just saved. I use Textpad, but notepad works fine.

C:\ProgramData\Autodesk\C3D 2009\enu\Pipes Catalog\US Imperial Structures\Inlet-Outlet-Custom\Wingwall sloped.xml

Once open, the first thing you may notice is the Ranges you created.

image

Very often the ranges are still default values.  If so, change these values to what they should be.

Next scroll to the bottom of the file, and review the Program Parameter values recently added (You really have to read it well to find them in the last 5 or so lines).  These are often 0.0.  If so, change them to the correct values.  Remember to use the ‘$’ with any variables, i.e. $SBSH.

Save the file and close it.

Go back to the Part Builder, and select the catalog. Select the Catalog Regen button and watch for any errors.  There shouldn’t be any.

image

Edit the Part List and add the new structure.

TOOLSPACE->SETTINGS->PIPE NETWORKS->PARTS LIST

Select the parts list you are using, perhaps standard, I use ENG.

Right click and select edit. Select the Structure Tab.

Once the parts list is opened, right click on the header and select ‘Add Part Family’.

image

The option brings a dialog box with the unselected families available.  Select the “Wingwall Sloped” structure, and the preview image should appear to the right.  The family will appear in the list.

Right click the ‘”Wingwall Sloped” family, and select ‘Add Part Size’.

The Part dialog appears to change the part size and to name the part.  Simply hit OK.  We can adjust the Height and Width in the Structure properties as we see fit.  We cannot however adjust them here.

At this point the Structure is available for use.

Create Network Parts

Open a drawing with a FG Corridor (or EG) surface. Then navigate as follows:

PIPES MENU->CREATE PIPE NETWORK BY LAYOUT

The Create Network dialog appears, prompting you for the Parts List, Surface Name, Alignment Name, etc.

image

Enter the Parts List you recently modified, and the surface of choice. Hit OK.

The Network Layout toolbar appears, allowing you to prepare the network parts to be used.  Select the ‘Wingwall Sloped’ from the Structure list.

image

Hit the ‘Draw Pipes and Structures’ button, and pick 2 points across your corridor surface (or whatever you selected).

image

Notice the ‘Box’ display.  This is due to the style selected when we added the part family to the network list. 

[TIP*: Once you create a new structure display style that you like, change the Settings when you add the part family to the Parts List, so that each time you create the part, the display style is how you like it.]

Right Click on the structure, and select Structure Properties. Select the Information Tab.

Create or edit the Structure Style (I used one called Headwall). In the Information Tab, change the Structure display type to be ‘Use Catalog defined 3D part’. 

image

Then in the Display Tab, ensure the 3D solid is turned on.

image

Hit OK, and OK again in the structure properties.

The display should update to something like this.

image

At this point SAVEAS the drawing to something else.  The reason is if anything goes wrong and you need to fix the structure in part builder and add another part family, you want to know that the drawing you will insert it into is clean, and not bugged by a previously flawed structure.

Grip edit the structures in the correct direction.  Then select a structure, and the pipe, Right click the display, and select Object Viewer.

This is what I got.

image

At this point the structures com in properly.  Because we have the flexibility to change the Height and Width at will, the application cannot keep up, and sometimes the structures get misaligned with the pipe.  These structures are Invert driven.  So edit the pipe inverts to elevate the structures appropriately.

There is a lot you can do with this structure, both good and problematic.  A good measure of bounds checking and structure limitations can be added to help this adapt more fluidly.

If anything goes wrong for you, please let me know.  Sometimes I get a bit ahead of the instruction and don’t realize it, and sometimes let a bug get in (I debug while I write the article). 

In the next session I will show how to put the side slope in a list to select from, and hopefully some edits to help control a bit more.  I will also list some more criteria, requirements, and limitations as I have collected info from tha application and all those going through this with me.

To the conclusion – Part 7

Advertisements

January 22, 2009 - Posted by | 2009, Part Builder | , , , ,

16 Comments »

  1. John,

    I followed your Part Builder 1-5 and the majority of Part 6 tutorials without any problems. However, I’m extreme difficulties trying to get the wingwall to appear in my drawing. The part and part catalog validates without any problems. I can add the part to my parts list without any problems. I can create the part network without any problems, but it does not display the part when I try to view my network in any views. I set my headwall style to use the “catalog defined 3D part” and the display to “3D solid”, but I get nothing. I know the part is in the drawing because it appears in my structure vista and a style with a block will display the block at the wingwall location. However, the 3D solid of the part refuses to display no matter what I do.

    Fred

    Comment by Frederick | January 29, 2009 | Reply

    • Fred,
      Quick question before I get really involved in this, are the 3D display layer turned on, both in the Layer manager, and in the Display Tab of the Style editor?

      I couldn’t get through to you at the email address listed.

      Comment by John Evans | January 29, 2009 | Reply

  2. John,

    Yes. The 3D display is turned on in both the layer manager and the display tab. That was one of the first things I doubled and tripled checked. By the way, I misspelled my email address.

    Comment by Frederick | January 29, 2009 | Reply

    • This is hard to troubleshoot from scratch. Input woudl be helpful.
      Ok, is anybody else having the same problem?
      Is anyone successful?

      Comment by John Evans | January 29, 2009 | Reply

  3. I’m the only one person at the company that actually uses Civil 3D. Everyone else still uses LDD. Don’t ask me why.

    I know the structure is in the drawing. I can change the display of the style to use a block instead in the plan view, and the block appears at the structure location. I only have problems when I try to set the style to show the 3D geometry of the structure.

    Comment by Frederick | January 29, 2009 | Reply

    • Fred,
      I am hoping the community will step up and tell us how it went.
      I’ll post a question to the group to see how it went.
      In the mean time, send me the Drawing and the Structure XML/DWG/BMP

      Comment by John Evans | January 30, 2009 | Reply

    • Fred,
      Check your email. I got it working. Let me know if my suggestions work!!

      Comment by John Evans | January 30, 2009 | Reply

  4. I’m the only person in my office who has Civil 3D 2009 on my computer.

    Comment by Frederick | January 29, 2009 | Reply

  5. John,
    I have a problem with my ranged parameters. I was under the impression that these were “editable” to within the range specified. I can’t adjust any ranged parameters, either in this part I created or in the preloaded parts.

    Comment by Bill Johnson | April 1, 2009 | Reply

    • Bill, Check your email. Let me know about that parameter.

      Comment by John Evans | April 8, 2009 | Reply

  6. My model seems to work ok in part builder but my user defined parameters don’t show up in Add part size or in structure properties once inserted into a network.

    Comment by Mike | May 19, 2009 | Reply

  7. I have run into similar issues before Bill, where part seems ok in part builder and validates fine, but doesn’t want to show itself when you use it in network. Also, range parameters intuitively seem to be that you can set values within the range, but it doesn’t seem to work that way all the time.

    Comment by Sanjay | November 10, 2009 | Reply

  8. […] Back to Part Builder Part 6 […]

    Pingback by Design and Motion | July 1, 2010 | Reply

  9. Hi John,
    I followed your Part Builder 1-5 and the majority of Part 6 tutorials without any problems. However, I’m extreme difficulties trying to get the wingwall to appear in my drawing. The part and part catalog validates with one warning (Part subtype not previously defined for this part type) & the validation summary is No Errors found.
    I can add the part to my parts list without any problems. I can create the part network without any problems, but it does not display the part when I try to view my network in any views. I set my headwall style to use the Model: “catalog defined 3D part” , Plan: ‘ Use outer part of boundary’ , Profile: ‘Display as boundary’ and the display to “3D solid is on”, but I get nothing shown in the drawing. (all the intersection of pipe shown empty structure)
    It appears in my structure vista and a style with a block will display the block at the wingwall location. What I need to do. Kindly explain

    Thank you
    Najeeb (najeebcad@yahoo.com)

    Comment by Najeeb Rahman | July 19, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: