Scale command

Scale command

Anonymous
Not applicable
519 Views
1 Reply
Message 1 of 2

Scale command

Anonymous
Not applicable
Hi

Is there a way to simulate the scale command using ObjectARX?
What I want to do is insert a new entity (AcDb2dPolyline for example) on
an existing drawing an give the user the option to autommaticaly change
the scale of this object?

Thanks
0 Likes
520 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Gustavo,

Just create an AcGeMatrix3d matrix calling one of its set functions:

setToScaling(double scale,const AcGePoint3d& center = AcGePoint3d::kOrigin);

After build the matrix apply it. Open the entity, get it's pointer and call
transformBy() member function passing in the previous built matrix. Close
the entity.

The same applies to rotation and translation purposes. There are special SET
functions for each situation.

Take a look at the AcGeMatrix3d class on SDK help for further information.

Hope this help,
Fernando.

"Gustavo Lermen" wrote in message
news:[email protected]...
> Hi
>
> Is there a way to simulate the scale command using ObjectARX?
> What I want to do is insert a new entity (AcDb2dPolyline for example) on
> an existing drawing an give the user the option to autommaticaly change
> the scale of this object?
>
> Thanks
>
0 Likes