DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Custom linestyles

Started by adriank, July 08, 2011, 10:05:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Adrian 2.0

I spent the last couple of days developing some custom linestyles for a project & I had an attempt to tidy up the Designcad selection of default linestyles.
I found the whole process is not user-friendly, when a linestyle is created it can't be edited (not even a name change) the only way to edit a style is to create a new linestyle & then delete the old one. The X Offset, Y Offset & Dash Offset values don't seem to relate to the width & height fields & the selection of shapes is limited. The option to 'Edit Shapes' does not allow you to add or change any shapes, only delete them or add text.
Nonetheless, through trial & error I managed to add the selection attached & delete a lot of the rubbish lines that clog up the menu when I'm searching for the lines I want.
I discovered if you click the 'Save LineStyle List' (top right of window) the current list of linestyles will load by default - previously I'd always had to open a drawing with a custom linestyle in it to access that linestyle to re-use it, so I learned something new. :)
I have one BIG problem.
I wanted a line that looked like a chain - not the string of ellipses (in the default 'chain' style) but showing links at 90deg. to each other as shown in  'custom.jpg' attached.
This is made with a double line, the shape 'SEMI' to close both ends & a single line to connect.
DCad has two 'arc' shapes, one called SEMI (half a circle) and one called 'Semi' (1/3rd of a circle) This may not have been a bright idea from the programmer because my 'chainlink' line converts SEMI to Semi every time I close the program, the result being the 'broken chain' image attached.
Anyone have any bright ideas?
If you want to use any of the lines attached (that aren't rubbish) you should be able to open the dcd file, goto 'options/custom linestyle' & click 'Save lineStyle list'.
In future releases it'd be nice if it was possible to reorganise the display order in the dropdown box so I don't have to scroll forever (through 1000 autocad imports) when I'm editing an imported file!

DrollTroll

Sorry, just ran across this.

The problem is that the names aren't designed to be case sensitive (just like macro command names and parameter names aren't case sensitive), but some dummy who most-recently created DC_Shapes.sys added in a second SEMI definition.

Here's the workaround -- with DesignCAD closed, open DCShape.sys in a text editor, and change the name of SEMI to something different, like SEMI_1. Save the changes.
Then, open DCLStyle.sys in a text editor, and whereever you find SEMI in the linestyle definitions, change it to the new name (ex. SEMI_1). Save the file, and restart DesignCAD -- the linestyle should now be correct.

I'll try to make sure the changed DCShape.sys file gets into the next update.

DT
25 years with DesignCAD

Shipmodeler

#2
I have always wanted to modify the hash mark (the 45 degree angle thing) in the Dimension/arrowhead to a much thicker line width.  The program defaults to whatever line width one is currently using.  Is there an easy way to change the line width on just the hash mark so it stays that width permanently without affecting the line width in general?

shipmodeler
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

Lar

Dcad doesn't allow any customization of dimensions components, far as I know. Only tricks I can suggest is <1> create a slash of the desired thickness and drop it on all the ends of the no-arrowhead dimensions (the autocad fellows I know use to do this last time I checked, back in the dos days)... <2> explode all the dimensions, then explode all the arrows of the exploded dimensions then somehow select all the slashes and change them. Maybe if you copy the dims to another layer and double-explode those you would keep the dimension entities so you can stretch them without having to draw new dimensions.

... or... create one no-arrowhead dimension, add the slashes, group the whole thing and duplicate this, stretching the ends with point select mode.

Lar

Shipmodeler

That's what I have been doing for some years.  Too bad there isn't a way to automate the process.

Shipmodeler
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

accuratesteel

I have enclosed two macros I use to change the line width of three colors I draw with. Red is the thickest, green is thinner and black is dimensions line ect. The second macro draws a hash mark, scales it so that it looks correct at any scale and draws it in red. you can put up to 40 hash marks at a time. Of corse all of this is very editable.
accuratesteel

accuratesteel

Sorry, My file extension was .bsc so it wouldn't attach it. I changed the extension to . d3m and I will see if it will come thru.

accuratesteel

Dr PR

For file extensions that the Forum won't load you can ZIP the file and load it.

Phil
DesignCAD user since 1987

accuratesteel

OK, Lets try this again. Here are the two macros, zipped.

accuratesteel