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.

Same As limitation

Started by bdeck, August 22, 2010, 01:42:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bdeck

The SameAs button in the infobox does not seem to work on Line Weight and "Enable Fixed Line Weight". (v17.2 and v20.0) Changing line style and width is one of the main reasons I use the infobox.

Also, the Point Relative dialog does not offer the "Last Point" option when the user is moving a points in point select mode. (Reference Point works, but Last Point would be better)

BD

Lar

Here's my solution to that very ufortunate situation...

[[[[[  IMPORTANT: if you get "ERROR: Include file not found" then replace the following
   Include "*\dcadalias.d3i"
with:
   Include "c:\macros\dcadalias.d3i"
except change 'c:\macros\' with you own filepath  ]]]]

Lar


'Copy Entity Linestyle.d3m
'by Lar,
'Nassau, Bahamas
'created: 22 Jan 2006

Include "*\dcadalias.d3i"
'Include "c:\macros\dcadalias.d3i"

if sys(80)=0 then   'if nothing is selected...
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

'YOU CAN REMOVE THE FOLLOWING LINE ONCE YOU GET COMFORTABLE WITH THE MACRO...
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

bdeck

Lar,

Thanks for the post.

Will use often.

BD