News:

Please note new Forum URL: forum.designcad.com

Main Menu

Loading New Line Style

Started by Douglas, December 11, 2006, 01:34:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Douglas

I am having trouble loading a new line style from a DesignCAD drawing.

I get as far as 'selecting the desired file', but there is no corresponding input under File Line Styles in the Load Custom Line Style dialog box. The add button stays greyed out.

I am obviously missing something here, but it eludes me at the moment.

Regards
DesignCad user since 1997

DrollTroll

#1
You have to pick a DesignCAD drawing with one or more linestyles that aren't already in your default linestyle definitions. If the drawing you pick doesn't have any new linestyles, then nothing will display in the "Add" box.

Download and unzip the attached drawing file.
Run Options/Custom Linestyle, and click on the Load button.
Click "Load from File", and browse to the downloaded copy of Goofyline.dcd.
You should see the linestyle named "Goofy" in the left-side of the dialog box. Click on it once and select "Add". It should be added to the bottom of your list of linestyles. Click OK.
Back in the main Linestye Editor dialog box, you can either click OK to load the linestyle temporarily, or you can click on Save Linestyle List to save the new list as the default linestyles.


The drawing and linestyle appended are not particularly useful, but they should help illustrate the process.

** Update ** Some email followup indicated that I had not fully answered Douglas' question.
DesignCAD won't let you define a new linestyle just based on the contents of a drawing file -- if you want a "zigzag" linestyle, you can't just draw a zig-zag line, save it as a drawing, and expect DesignCAD to magically convert the drawing to a new linestyle. (Maybe someday -- not today.)

Now, if someone else has already done all this homework, and you have a drawing containing a sample of their new spiffy linestyle, you can just import the linestyle into DesignCAD from that drawing -- in this case loading the linestyle and saving the linestyle list will automatically update the appropriate Sys files (DcLStyle.sys and DcShape.sys). I have attached InsulationTest.zip to show how this works. Import the new linestyle from InsulationTest.dcd, and open the Custom Linestyle Editor -- you will see the Insulation linestyle at the bottom of the list, based on the new custom shape "BATTING".

To create a new linestyle with custom shapes *from scratch*, you have to modify the DcShapes.sys file in order to add new shape primitives, and then you can use the Line Style Editor to use those new shapes in a new linestyle. This is described somewhat in Appendix A of the reference manual, but it's probably not as clear as it could be. Perhaps a tutorial will arise one day "soon"...

25 years with DesignCAD

Douglas

Hi DT:

Thanks for the Insulation line style you posted - its works perfectly on my system
You are awesome

It will be a real time saver for me.

Appreciate your help
DesignCad user since 1997