.NET

Reply
Mentor
217 Posts
1 Kudo
Registered: ‎08-24-2010
Post 1 of 4
Accepted Solution

Scaling Block Attributes

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

Hello every body

 

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

Hi,

 

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

Valued Contributor
91 Posts
4 Kudos
Registered: ‎12-05-2011
Post 2 of 4

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
217 Posts
1 Kudo
Registered: ‎08-24-2010
Post 3 of 4

Re: Scaling Block Attributes

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

no i mean scalling using .net code

*Expert Elite*
2,142 Posts
255 Kudos
Registered: ‎04-29-2006
Post 4 of 4

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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!