Author Topic: How to get proterties value In the Property Palette  (Read 2454 times)

0 Members and 1 Guest are viewing this topic.

chlh_jd

  • Guest
How to get proterties value In the Property Palette
« on: October 20, 2014, 02:39:25 PM »
Hi all , We can get objects properties by vlax-get-property function , it can get almost all properties , however it can't get some proterties yet , e.g. Length of swept-3dsolid  in AutoCAD2011 .

Though objectARX seem can do it , is there a way to do it by VLISP ?

Many thanks .

ChrisCarlson

  • Guest

chlh_jd

  • Guest
Re: How to get proterties value In the Property Palette
« Reply #2 on: October 21, 2014, 12:36:29 AM »
ChrisCarlson , thank you for offer this link .
Fow get swept-3dsolid's Length , I know the 2 method given by GP .
Here I want a way to get all properties which can be gotten by  command "Properties"  .

ChrisCarlson

  • Guest
Re: How to get proterties value In the Property Palette
« Reply #3 on: October 21, 2014, 03:33:54 PM »
What about

Code - Auto/Visual Lisp: [Select]
  1. (vlax-dump-object (vlax-ename->vla-object (car (entsel))) t)

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: How to get proterties value In the Property Palette
« Reply #4 on: October 22, 2014, 03:08:49 AM »
Hi,

If you're running AutoCAD 2012 or later, you can use the new AutoLISP functions which came with AutoCAD for Mac.

With a swept 3d solid, this will work:
Code - Auto/Visual Lisp: [Select]
  1. (getpropertyvalue (car (entsel)) "Length")
Speaking English as a French Frog

chlh_jd

  • Guest
Re: How to get proterties value In the Property Palette
« Reply #5 on: October 23, 2014, 08:54:39 AM »
What about

Code - Auto/Visual Lisp: [Select]
  1. (vlax-dump-object (vlax-ename->vla-object (car (entsel))) t)
Thanks ChrisCarlson , This function can't dump out all Properties of the 'Properties' command method .

chlh_jd

  • Guest
Re: How to get proterties value In the Property Palette
« Reply #6 on: October 23, 2014, 08:57:00 AM »
Hi,

If you're running AutoCAD 2012 or later, you can use the new AutoLISP functions which came with AutoCAD for Mac.

With a swept 3d solid, this will work:
Code - Auto/Visual Lisp: [Select]
  1. (getpropertyvalue (car (entsel)) "Length")

Thanks Gile , thank you a lot .

I wrote a plugin , it must include AutoCAD 2011 and earlier version ,
So here is the contradiction : this function(GetPropertyValue) can not be fully applicable .
System         Bit           AcVer           used   method             GetallpropertyvalueOK(Yes/No)
WinXP           32           all              TlbInf32.dll  invoke                     Yes
Win7             32          <R18          TlbInf32.dll  invoke                     Yes
Win7             32          >=R17.2        VSTLBINF.dll invoke                    No
Win7             64           all              VSTLBINF.dll  invoke                   No
-ALL-             --           >=R18.2        GetPropertyValue                       Yes   

So here has a part : R17.2~R18.1  in Win7 64Bit System can't found method to solve it .

                 
« Last Edit: October 23, 2014, 09:13:02 AM by chlh_jd »