Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

CUI Macro?

Status
Not open for further replies.

aesoton

Marine/Ocean
Sep 25, 2002
42
This follows on from an earlier thread (Centre of Polyline and scale) but I thought that it is different enough to warrant a new thread. I am using AutoCAD LT at the moment and cant find the tool for running lisps. Is this possibly because AutoCAD LT can't do this? So I have had a go at creating a command in the CUI although I have very little idea of what I am doing.
The basic command that I want to fuse together are.
1) create region from polyline
^C^C_region
2) Read the mass properties using massprop
^C^C_massprop
3) read the centroid x and y values from massprop and use them to scale by.
4) scale by a factor of 0.9
$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),GRIP),_scale,^C^C_scale)

Is there any way to combine these commands into one?
 
Replies continue below

Recommended for you

So far I have managed to work out th following

This creates a region from a polyline and then calls up the mass properties.

^C^Cregion;\;_^C^C_massprop^M\;N;

but how to ask it for the x and y centroids?

Andrew299
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor