- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I have written the same routine multiple times, each time roadblocked by this issue:
Nothing works in AcCoreConsole.exe.
For part of my routine, I need to retrieve a property from a series of dynamic blocks. Here is a (modified) chunk of my existing code:
(if some-bool
(setq
name (LM:al-effectivename ent) ;; Block's human-readable name
data (list
ent ;; Entity
(cond ;; Convert the human-readable name to int
( (= name "NAMEFLY") 1 )
( (= name "NAMEPLZ") 1 )
( (= name "NAMEGUY") 2 )
( (= name "NAMEZZZ") 3 )
( T 0 ) ;; Default
)
(atoi (getpropertyvalue ent "AcDbDynBlockPropertyMyHeight")) ;; Height
)
mylist (append mylist (list data))
)
)
*Credit to Lee Mac for LM:al-effectivename:
http://www.lee-mac.com/effectivename.html
Please see line 13, where I read a property value from a dynamic block. This works find in Acad. Unfortunately, when running this routine in AcCoreConsole, I get the error "no function definition: GETPROPERTYVALUE". I speculate this to be due to getpropertyvalue relying on Visual Lisp somewhere, which AcCoreConsole does not support; in any case, it doesn't work.
I can't seem to find any documentation on obtaining this value without Visual Lisp. I do not have permission to edit this dynamic block (and I don't know how to, anyway).
I need help getting this value. The property I'm looking for corresponds to the block's height - if I have a way to measure its height (along the y axis) in model space, I can work off that. It is also the same as the visibility state, in case that helps. References to documentation, sample code, etcetera that can point me in the right direction are also appreciated.
Solved! Go to Solution.