Just want to set simple property using LISP
but getting different errors,
i want to set this property after i added an new attdef into my dwg using vla-addattribute syntax
Any an idea how to set this?
I try to set this value
_$ ins1
(0.0 0.0 0.0)
; error: Automation Error. Not applicable
_$ (vlax-put-property att 'Alignment prop1)
nil
_$ (vlax-put-property att 'TextAlignmentPoint (vlax-3D-point ins1))
; error: Automation Error. Not applicable
_$ (vlax-3D-point ins1)
#
_$ (vlax-put-property att 'TextAlignmentPoint (vlax-3D-point ins1))
; error: Automation Error. Not applicable
_$ ins1
(0.0 0.0 0.0)
_$ (vlax-put-property att 'TextAlignmentPoint ins1)
; error: lisp value has no coercion to VARIANT with this type: (0.0 0.0 0.0)
_$ (vlax-get-property att 'TextAlignmentPoint)
#
_$ (setq test (vlax-get-property att 'TextAlignmentPoint))
#
_$ (vlax-put-property att 'TextAlignmentPoint test)
; error: Automation Error. Not applicable
If the Alignment property of single-line text or single-line attributes is set to Left (equivalently DXF groups 72 & 73 both set to 0), then the position of the text or attribute is instead determined by the InsertionPoint property (or DXF group 10); if the justification is anything other than Left, then the position is determined by the TextAlignmentPoint property (or DXF group 11).
This behaviour is clearly described in the 'Remarks' section of the documentation for the TextAlignmentPoint property:
I found the issue
For some strange reason the attdef i have seems to be made out of MTEXT
It only has the justification options you see with MTEXT
I try to set a value that does not exist for the mtext justification
Just wonder how it is possible to end up with attdef that has same justification as mtext