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.

can't change default line type

Started by rccon, January 03, 2008, 04:52:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rccon

Having recently switched to v17.2 from v15, I'm finding new problems. I change the line type to solid and click "save as default" in the line type box, save the file and close it. The next time I open that file, the line type has reverted to dashed. I notice that if I do this and nothing else I am not asked if I want to save changes on closing, so the default change is apparently not recognized.
Also, I have a keystroke macro that makes a line, and some other objects, the same as another, and it no longer works as it did in v15. It will change a line type, but often not the scale. Can anyone help?

edgar

I recall seeing this bug reported previously. It is still there in v.18. I am sure a beta tester will bring this to DCad's attention--I cannot promise it will be fixed!
-Ed

Lar

rccon, the dashed linestyle has plagued me for a long time but I may have discovered a fix:

1] Open the Layer Dialogue Box and set up the linestyle you want to open with on Layer 1 and make it current...
2] Click the Save As Default button, then OK to close the Layer box.

Open a new file and see if the current linestyle is as you set up in Lay1.

If you have a layer setup already saved as default then open a new file (it will have the default setup), draw a box or something then save the file. After doing my test you can reopen the file and save that as default again. The dashed line may be back, though.

As for the macro, I have a similar one that still works ok. If you post yours we can take a look at it.

Lar

Pearco

rccon;

I have done similar to what Lar said and since the only time I get a dashed line is when I recall a drawing that was saved with with a dashed line as one of the loaded ones. His steps 1 & 2 worked for me.
Jim
User since ProDesign 1.5

rccon

Thanks to all. I'll try the layer solution. The attached macro is the one which worked in v.15 but won't change the line scale in v.17.2. Any improvements would be appreciated. Nother problem I just discovered in 17.2 is that the arrowheads don't adjust to the text size as they did in 15.

rccon

The layer method fixing the line style worked--almost. As long as layer 1 is current when I open the drawing, line style is as I set it, and it applies to all layers. However, if some other layer is current when the drawing is opened, the line style is dashed. Then on switching the current layer to 1 it becomes the chosen style, and after that it applies to all layers. A great improvement but still, it seems to warrant the attention of the programmers.

Pearco

rccon;

Arrow heads have to be set in Options/Dimensions and the arrow head dialog box that can be accessed from the dim toolbar when you invoke dim command. Why? I do not know.
Jim
User since ProDesign 1.5

Lar

Here's my macro to copy the linestyle. It uses The Change and Query functions (that may not be available in 13). It does not deal with double lines though...

'****MACRO START****
'Copy Entity Linestyle.d3m by Lar,
'Nassau, Bahamas
'created: 22 Jan 2006
'revised 24 May 2007: turn off message telling user to click on entity whose linestyle to copy

Include "*\dcadalias.d3i"

if sys(80)=0 then
message "Sorry, Entities to Change must be selected already. Select Entities then restart macro..."
end
end if

NumSel=sys(80)   'number of entities selected...

dim ent(NumSel)

for ee=1 to NumSel
getselect ee, ent(ee)
next ee

'message "Click on the Entity to Copy Linestyle from..."

>PointSelect
{
}

GetSelect 1, e2nd
Entity e2nd


Query Ent_Linetype, eltype
Query Ent_LineScale, eltypescale
Query Ent_LineWidth, elwidth
Query Ent_LineFill, elfilled
Query Ent_LineWeight, elweight
Query Ent_FixedWidth, elfixed

sys(80)=0  'deselect everything...

for eee=1 to NumSel
Entity ent(eee)

Change Ent_Linetype, eltype
Change Ent_LineScale, eltypescale
Change Ent_LineWidth, elwidth
Change Ent_LineFill, elfilled
Change Ent_LineWeight, elweight
Change Ent_FixedWidth, elfixed

Update

'reselect original entities...
GETATTR ent(eee), type ,select
select=1
PUTATTR ent(eee), type ,select


next eee

regen    'regenerate screen
'****MACRO END*****

It appears I have a macro posted in the Tips and Tricks Dept. that relates the arrowhead size to the dimension text size at the following link:

http://forum.designcad.com/index.php?topic=500.0

Lar


rccon

Lar,   I can't get the linestyle macro to work. Error message says that the file dcadalias.dsi cannot be found, although it is there in c:\program files\designcad 3dmax 17\sample macros\. If I type the full path name into the windows explorer search box, I'm told it refers to a location that is unavailable.

The dim text-arrow.d3m macro works fine for dimensions, but I'd like to relate arrow size to text size also for the arrow command and the pullout command. In ver. 15, this seemed to be the case by default. Can this be done?

Bob P

Copy dcadalias.d3i to the folder with the dc exec file: i.e. c:\program files\designcad 3dmax 17\

rccon


Lar

rccon, to use the dim text-arrow for other types of dimensions change the following...

>Dimension

...to the type of dimension you want. You may have to adjust the parameters following it as well. Use the Macro Record command (Tools menu) to record a macro with the dimensions you want then open the recorded macro to get the syntax for all the parameters (in the little dialogue box there's something like an 'options' button that allows you to 'record parameters'). There will be a bunch. You don't have to use all of them, just the wants you want changed regularly. When a dimension command is called up in a macro you will still have access to the dialogue boxes to change stuff.

It may be simpler to create a separate macro for each of the dim types.

Lar

rccon

Actually, Lar, your macro gave me all I needed for the dimension command, but I would like the same arrowhead size to apply to the arrow and pullout commands as well. I overcame a deep-seated fear of macros so far as to modify yours, changing sys(462) for dimension arrowhead size and sys(445) for non-dimension arrowhead size, but neither of these affect the pullout arrowhead size. I can't find a sys function for this. Is there one? Maybe I need to update my list of sys functions. Is there one available for download?

Lar

rccon, after running the macro below once the resulting value will become the default for the Pullout command. Run the macro again after changing the text size.


'****MACRO START****
fac=0.75  'change to your value and in 'default=0.75' in the line below
input "Enter the factor (default= 0.75) for the arrowhead size in relation to the default text size..." fac
'...when using the default value just click OK without entering anything.

>Pullout
{
<ArrowSize [sys(12)*fac]  'sys(12) is the default text size
<incomplete
}
'****MACRO END****

Lar

rccon

Lar,   I added that onto the set text size macro. Works like a charm. thanks again.