PDA

View Full Version : "AngleToReal" in ActiveX method



rajat126
2004-06-15, 12:35 PM
Hi,
How do I convert "AngleToReal" by using ActiveX method ?

-Rajat

stig.madsen
2004-06-15, 01:01 PM
Hi,
How do I convert "AngleToReal" by using ActiveX method ?

-Rajat

The AngleToReal method is part of the Document's Utility object:

(vl-load-com)
(setq doc (vla-get-activeDocument (vlax-get-acad-object)))
(setq utils (vla-get-utility doc))

(vla-angleToReal utils "180.0" acDegrees)
will then return 3.14159 as a real