Scaling Block Attributes

Scaling Block Attributes

Amremad
Collaborator Collaborator
909 Views
3 Replies
Message 1 of 4

Scaling Block Attributes

Amremad
Collaborator
Collaborator

Hello every body

 

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

Accepted solutions (1)
910 Views
3 Replies
Replies (3)
Message 2 of 4

jaboone
Advocate
Advocate

(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
0 Likes
Message 3 of 4

Amremad
Collaborator
Collaborator

no i mean scalling using .net code

0 Likes
Message 4 of 4

_gile
Consultant
Consultant
Accepted solution

Hi,

 

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



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub