How to extract scale from this block?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to extract the scale xyz values from the attached block but always have error, here my code:
(defun DGpvPosition ( / )
(if (setq GpvPositionX1 (getpropertyvalue (entlast) "Position/X"))
(setq GpvPositionX1 (car GpvPositionX1))
(setq GpvPositionX1 1)
)
(if (setq GpvPositionY1 (getpropertyvalue (entlast) "Position/X"))
(setq GpvPositionY1 (car GpvPositionY1))
(setq GpvPositionY1 1)
)
(if (setq GpvPositionZ1 (getpropertyvalue (entlast) "Position/X"))
(setq GpvPositionZ1 (car GpvPositionZ1))
(setq GpvPositionZ1 1)
)
(setq GpvPositionXYZ1 (list GpvPositionX1 GpvPositionY1 GpvPositionZ1))
)
Here are the values:
ScaleFactors/X (type: double) (LocalName: Scale X) = Failed to get value
ScaleFactors/Y (type: double) (LocalName: Scale Y) = Failed to get value
ScaleFactors/Z (type: double) (LocalName: Scale Z) = Failed to get value
how to extract Scale values for the attached code and if null or error return "1"?
Link copied