AutoCAD for Mac Forum
Welcome to Autodesk’s AutoCAD for Mac Forums. Share your knowledge, ask questions, and explore popular AutoCAD for Mac topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flatten drawing - Polylines + Lines

31 REPLIES 31
SOLVED
Reply
Message 1 of 32
badboidavid
18528 Views, 31 Replies

Flatten drawing - Polylines + Lines

Is there a way to flatten all the Polylines + Lines to a specified Z height?

 

I have tried Change>properties>Elevation>0 

and it only worked for some of the lines.....

 

I cant get the "Flatten" command to work...

 

thanks

31 REPLIES 31
Message 2 of 32
maxim_k
in reply to: badboidavid

Hi,

The old trick that works in both AutoCAD and AC LT is to move objects, that you want to flatten far away along Z axis and than move to previous place, so you can use such macros (you can add them via CUI command to ToolSets Palette or to Pull-down menu):
1. Flatten selected objects to WCS:

 ^C^C_UCS;_W;_SELECT;\_MOVE;_p;;;0,0,1e99;_MOVE;_p;;;0,0,-1e99 



or
2. Flatten selected objects to current UCS:

 ^C^C_SELECT;\_MOVE;_p;;;0,0,1e99;_MOVE;_p;;;0,0,-1e99 



After you select this macro from menu or from ToolSets, you have to select object(s), hit Return and everything you have selected will be flatten (even 3d solids, meshes, 3d polylines ad splines)

EDIT: if you will put this macro to ToolSets Palette, you can even attach an icon from "real" ExpressTools command, just type RCDATA_16_FLATTEN in image field in CUI editor:

Screen_shot_2011-11-16_at_9.54.03.png

HTH

Maxim


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 3 of 32
3wood
in reply to: badboidavid

Please try CHZ20.vlx

 

3wood

CAD KITS

Message 4 of 32
maxim_k
in reply to: 3wood


@3wood wrote:

Please try CHZ20.vlx

 

3wood

CAD KITS


VLX doesn't supported in AutoCAD for Mac.

 

Maxim


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 5 of 32
hofeller
in reply to: maxim_k

Dear Maxim,

 

Many thanks for the usefull Macro (and the insturction for adding it..)

is there a way to add a keyboard shortcut to apply it?

 

Hagay

Message 6 of 32
maxim_k
in reply to: hofeller

Hi Hagay,

@hofeller wrote:

is there a way to add a keyboard shortcut to apply it?

 


Yes, you can try to use one of the methods:

1. Simple one: Creating shortcuts for custom commands in AutoCAD for MAC (use method 2 from the post)

2. More complicated method Edit and Create Shortcuts in AutoCAD for MAC? YES it is possible! Part two (advanced)

 

For #1 I used Snow Leopard, but such way should work in Lion too.

 

HTH

Maxim


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 7 of 32
gregory
in reply to: maxim_k

Not really working out for me!  I added it to the CUI, then added it to the Tool set under custom.

 

When I select it asks for 1st point of displacement then 2nd point of displacement.  I just said 0,0,0 for both...

 

What do you think it's up?

 

Thanks,

 

-G

 

Message 8 of 32
maxim_k
in reply to: gregory

Hi Gregory,

 

Before you use this macro be sure, that noting is selected in your drawing. If you select objects and call this macro - it doesn't work properly.

 

Maxim


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 9 of 32
gregory
in reply to: maxim_k

this is what i get when i activate the command:

 

Command: _MOVE
1 found
Specify base point or [Displacement] <Displacement>: _p
Point or option keyword required.
Specify base point or [Displacement] <Displacement>:
Specify displacement <0'-0", 0'-0", 0'-0">:

 

it'ls like a move command thing...

Message 10 of 32
maxim_k
in reply to: gregory

Do you have any object(s) selected before you call script?

On my side everything works fine - ScreenCap.mp4

and doesn't work with preselected object - ScreenCap with selected obj.mp4

 

Maxim

 


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 11 of 32
gregory
in reply to: maxim_k

I'm using AutoCAD 2013 does that make a difference?

 

I have nothing selected, btw.

 

Also, if i manually paste 0,0,-1e99  this into the command line when it asks me to input the displacement value it works!

 

weird.  Do you think there is something wrong with the macro?

 

Thanks,

 

-G

 

Message 12 of 32
maxim_k
in reply to: gregory

Oops!

yes, you are right - it doesn't work in AC 2013.

Try this macro:

 

^C^C_SELECT;\_MOVE;;0,0,1e99;^C_MOVE;_p;;;0,0,-1e99

 

 

Should work.

 

Maxim


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 13 of 32
gregory
in reply to: maxim_k

Dude!  You're the BEST!  Works like a charm!

 

Thanks,

 

-G

 

Message 14 of 32
gregory
in reply to: gregory

Maxim...

 

Any idea why this Macro does not work in MAC CAD 2014?

 

Thanks,

 

-G

Message 15 of 32
maxim_k
in reply to: gregory

Hi Gregory,

In AC 2014 macro from my post # 2:
http://forums.autodesk.com/t5/AutoCAD-for-Mac/Flatten-drawing-Polylines-Lines/m-p/3290861#M3559
works for me.

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 16 of 32
gregory
in reply to: maxim_k


@maxim_k wrote:

Oops!

yes, you are right - it doesn't work in AC 2013.

Try this macro:

 

^C^C_SELECT;\_MOVE;;0,0,1e99;^C_MOVE;_p;;;0,0,-1e99

 

 

Should work.

 

Maxim


So don't use this one in AC2014?

 

-G

 

Message 17 of 32
maxim_k
in reply to: gregory


@gregory wrote:

@maxim_k wrote:

Oops!

yes, you are right - it doesn't work in AC 2013.

Try this macro:

 

^C^C_SELECT;\_MOVE;;0,0,1e99;^C_MOVE;_p;;;0,0,-1e99

 

 

Should work.

 

Maxim


So don't use this one in AC2014?

 

-G

 


Yes, this one doesn't work in AC 2014.

I just tested this:

^C^C_SELECT;\_MOVE;_p;;;0,0,1e99;_MOVE;_p;;;0,0,-1e99 

 and it works.

 

Maxim


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 18 of 32
gregory
in reply to: maxim_k

Thanks! At home now and installed 2014 from my MBP Retina.... Could not deal with the graphics! using 2013...

I'll test that at work tomorrow, but i'm sure it works great! Thanks!

-G
Message 19 of 32
perlita92
in reply to: maxim_k

Hello Maxim,

 

How did you add the flatten icon in your drawing tool bar? i'm not sure if i have the same problem as G, but i have an annoying symbol in some of my lines when the selection tool is near... (image). I think the flatten command is what i need, but the Autocad for Mac doesn't recognize it... What should i do?Screen Shot 2016-02-24 at 9.21.29 PM.png

Tags (1)
Message 20 of 32
maxim_k
in reply to: perlita92

Hi,

I answered here:

http://forums.autodesk.com/t5/autocad-for-mac-general/annoying-simbols/td-p/6059295

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost