.NET

Reply
Mentor
Amremad
Posts: 212
Registered: ‎08-24-2010
Message 1 of 4 (258 Views)
Accepted Solution

Scaling Block Attributes

258 Views, 3 Replies
06-04-2013 02:23 AM

Hello every body

 

How can i scale a block have some attributes , with known factor ?

Valued Contributor
jaboone
Posts: 91
Registered: ‎12-05-2011
Message 2 of 4 (244 Views)

Re: Scaling Block Attributes

06-04-2013 06:11 AM in reply to: Amremad

(setq oldortho (getvar "orthomode"))
(setq oldcanno (getvar "cannoscalevalue"))

 

I have a lisp routine for finding scale of a drawing.  Search the cannoscalevalue to find drawing scale and do your required math from there.

 

Hope this helps.

Learning as I go
Mentor
Amremad
Posts: 212
Registered: ‎08-24-2010
Message 3 of 4 (216 Views)

Re: Scaling Block Attributes

06-05-2013 01:36 AM in reply to: jaboone

no i mean scalling using .net code

*Expert Elite*
_gile
Posts: 2,078
Registered: ‎04-29-2006
Message 4 of 4 (195 Views)

Re: Scaling Block Attributes

06-05-2013 09:57 PM in reply to: Amremad

Hi,

 

Did you try the Entity.TransformBy(Matrix3d.Scaling(scale, center)) method ?

Gilles Chanteau

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community