Recent Posts

Pages: 1 [2] 3 4 ... 10
11
AutoLISP (Vanilla / Visual) / Re: How to get data from Property Pane?
« Last post by Rod on Today at 02:50:28 AM »
I did some experimenting with reading property sets using lisp, but I had to install an autocad architecture trial to get the required dlls.
See https://www.theswamp.org/index.php?topic=54460.msg598224#msg598224
I haven't furthered it any more, just too busy.

Sounds like you are after object data anyway

+2 for ade_odgetfield
12
AutoLISP (Vanilla / Visual) / Re: How to get data from Property Pane?
« Last post by BIGAL on Today at 02:19:08 AM »
Object data has good references. Property data can also exist and is a bit of a nightmare to get at unless you have access to the right .dll's. Civ3d on its own is an example, the dll's are in Autocad Architecture but not Civ3d you can see them in the properties box. Creating them by external program can be done but how to retrieve programatically.
13
AutoLISP (Vanilla / Visual) / Re: Zoom to Geolocation Point
« Last post by wizman on Today at 01:08:38 AM »
You're welcome. Good luck & just come back with an error message in case you're still stuck.
14
AutoLISP (Vanilla / Visual) / Re: Zoom to Geolocation Point
« Last post by MSTG007 on July 13, 2020, 04:02:16 PM »
Thanks for the input, so visual lisp was the key for the zoom function. lol Not sure, what I did now, I can't get it to work lol. Ill hopefully figure it out.

Again, thanks
15
AutoLISP (Vanilla / Visual) / Re: How to get data from Property Pane?
« Last post by tombu on July 13, 2020, 12:14:42 PM »
Examples here: https://www.theswamp.org/index.php?topic=51728.0
The ade_odgetfield function from jvillarreal's link is the most common way to get that record but you need the Table name as well.
16
AutoLISP (Vanilla / Visual) / Re: How to get data from Property Pane?
« Last post by jvillarreal on July 13, 2020, 11:57:33 AM »
Look into the object data functions.
Here's one resource:
https://documentation.help/AutoCAD-Map-3D-2009-AutoLISP/object_data_functions.htm
17
AutoLISP (Vanilla / Visual) / Re: Zoom to Geolocation Point
« Last post by wizman on July 13, 2020, 11:45:27 AM »
Your getPositionMarkerCoords function works, just replace:

(command "zoom" "center" (getPositionMarkerCoords) "200000")

with

(vla-zoomcenter (vlax-get-acad-object) (vlax-3d-point p) 20000)

in your c:test.
18
AutoLISP (Vanilla / Visual) / Re: How to get data from Property Pane?
« Last post by Peter2 on July 13, 2020, 10:44:13 AM »
Hi Marco

the problem that "MAP with Industry Model" (on oracle) has a dataflow in background which I don't know and uses for everything the object "AcMapBulkFeature". E.g dumping a text (similar to the example above) I get this:

Code - Auto/Visual Lisp: [Select]
  1. Objekt wählen: Begin dumping object (class: AcMapBulkFeature)
  2. Annotative (type: bool)  (LocalName: Beschriftung) = Failed to get value
  3. AnnotativeScale (type: AcString)  (RO)  (LocalName: Beschriftungs-Maßstab) = Failed to get value
  4. BlockId (type: AcDbObjectId)  (RO) = 16ea11089f0
  5. CastShadows (type: bool) = 1
  6. ClassName (type: AcString)  (RO) =
  7. CollisionType (type: AcDb::CollisionType)  (RO) = 1
  8. Color (type: AcCmColor)  (LocalName: Farbe) = VONLAYER
  9. ExtensionDictionary (type: AcDbObjectId)  (RO) = 0
  10. Handle (type: AcDbHandle)  (RO) = 9fc
  11. HasFields (type: bool)  (RO) = 0
  12. HasSaveVersionOverride (type: bool) = 0
  13. Hyperlinks (type: AcDbHyperlink*)
  14. IsA (type: AcRxClass*)  (RO) = AcMapBulkFeature
  15. IsAProxy (type: bool)  (RO) = 0
  16. IsCancelling (type: bool)  (RO) = 0
  17. IsEraseStatusToggled (type: bool)  (RO) = 0
  18. IsErased (type: bool)  (RO) = 0
  19. IsModified (type: bool)  (RO) = 0
  20. IsModifiedGraphics (type: bool)  (RO) = 0
  21. IsModifiedXData (type: bool)  (RO) = 0
  22. IsNewObject (type: bool)  (RO) = 0
  23. IsNotifyEnabled (type: bool)  (RO) = 0
  24. IsNotifying (type: bool)  (RO) = 0
  25. IsObjectIdsInFlux (type: bool)  (RO) = 0
  26. IsPersistent (type: bool)  (RO) = 1
  27. IsPlanar (type: bool)  (RO) = 0
  28. IsReadEnabled (type: bool)  (RO) = 1
  29. IsReallyClosing (type: bool)  (RO) = 1
  30. IsTransactionResident (type: bool)  (RO) = 0
  31. IsUndoing (type: bool)  (RO) = 0
  32. IsWriteEnabled (type: bool)  (RO) = 0
  33. LayerId (type: AcDbObjectId)  (LocalName: Layer) = 16ea110ed10
  34. LineWeight (type: AcDb::LineWeight)  (LocalName: Linienstärke) = -1
  35. LinetypeId (type: AcDbObjectId)  (LocalName: Linientyp) = 16ea1108950
  36. LinetypeScale (type: double)  (LocalName: Linientypfaktor) = 1.000000
  37. LocalizedName (type: AcString)  (RO) =
  38. MaterialId (type: AcDbObjectId)  (LocalName: Material) = 16ea1108dc0
  39. MergeStyle (type: AcDb::DuplicateRecordCloning)  (RO) = 1
  40. ObjectId (type: AcDbObjectId)  (RO) = 16ece87fe40
  41. OwnerId (type: AcDbObjectId)  (RO) = 16ea11089f0
  42. PlotStyleName (type: AcString)  (RO)  (LocalName: Plotstil) = VonFarbe
  43. ReceiveShadows (type: bool) = 1
  44. ShadowDisplay (type: AcDb::ShadowFlags)  (LocalName: Schattenanzeige) = 0
  45. Transparency (type: AcCmTransparency)  (LocalName: Transparenz) = 0
  46. Visible (type: AcDb::Visibility) = 0
  47. End object dump

And this is why I thought "Don't search for the real data - just take the displayed data" ....
19
AutoLISP (Vanilla / Visual) / Re: How to get data from Property Pane?
« Last post by ribarm on July 13, 2020, 10:19:37 AM »
Have you tried something like :
(dumpallproperties (car (entsel)))

Then to get/set you have :
(setpropertyvalue (car (entsel)) "Property" "Value")
(getpropertyvalue (car (entsel)) "Property")

"Property" and "Value" are just my examples - you should be using what you get/see when (dumpallproperties (car (entsel)))
20
AutoLISP (Vanilla / Visual) / How to get data from Property Pane?
« Last post by Peter2 on July 13, 2020, 09:32:34 AM »
Hi
The original "Property Pane" from AutoCAD shows sometimes properties of one or many elements which are not that easy to get - see the example here, taken from AutoCAD MAP with Industry Model, based on Oracle.


So I think it is sometimes easier to analyse and use the data from Property Pane instead from the objects themselves.
Are there tools to get the data from the pane?
Or is my idea not that great as I think?
Pages: 1 [2] 3 4 ... 10