Now, I am trying to remove all "KS_BOLT" (non-autocad entity) by replacing
(if (wcmatch (vla-get-ObjectName AcDbEntity) "AcDb*Dimension")
to
(if (wcmatch (vla-get-ObjectName AcDbEntity) "Ks_Bolt")
KS_BOLT have the following info I extracted from 'VDumpit' from https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exploding-certain-entities-in-all-bl...
I am able to select the correct quantity of KS_BOLT but i cannot execute explode or erase command on those non-AutoCAD entities. Does it need some special codes for non_AutoCAD entities?
;;;;;
Select Entity to Dump; IKs_ComBolt: IKs_ComBolt Interface
; Property values:
; Application (RO) = #<VLA-OBJECT IAcadApplication 00007ff726181e30>
; AreaClassName (RO) = ""
; BoltCoatingType = 2
; BoltDisplay = -1
; BoltMountingSpaceFootLength (RO) = 0.0
; BoltMountingSpaceFootWidth (RO) = 0.0
; BoltMountingSpaceHeadLength (RO) = 0.0
; BoltMountingSpaceHeadWidth (RO) = 0.0
; BoltPartlist = -1
; BoltStyleName = "8.8S-GALV"
; Count = 1
; CounterSunk = 0
; DetailStyleName (RO) = ""
; Diameter = 16.0
; DiskInnerDiameter = 18.0
; DiskOuterDiameter = 32.4
; DiskThick = 3.1
; DisplayClassName (RO) = ""
; Document (RO) = #<VLA-OBJECT IAcadDocument 000002811f8aea08>
; EntityTransparency = "ByLayer"
; FamilyClassName (RO) = ""
; FootThick = 16.0
; FreeDescriptionName (RO) = "NONE"
; GripMax (RO) = 174.0
; GripMin (RO) = 164.0
; Handle (RO) = "3F922"
; HasExtensionDictionary (RO) = 0
; HeadThick = 11.0
; Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 0000028185511b98>
; Inbus = 0
; InsertPoint (RO) = (-451.0 2677.0 -5.65455e-13)
; ItemNumber = "025"
; KeySize = 27.0
; KlemmLength = 153.188
; Layer = "PS_BOLT"
; Length = 180.0
; LengthAddition = 0.0
; Linetype = "ByLayer"
; LinetypeScale = 1.0
; Lineweight = -1
; Material = "ByLayer"
; MaterialIndex = 3002
; MountingBolt = 0
; Name = "M16 x 180 8.8/S GALV"
; Note1 = ""
; Note2 = ""
; NutDisplay = -1
; NutPartlist = 0
; ObjectID (RO) = 150
; ObjectName (RO) = "Ks_Bolt"
; OwnerID (RO) = 71
; PalNutDisplay = 0
; PalNutPartlist = 0
; PartOrigin (RO) = 0
; PlotStyleName = "Color_4"
; PosNumber = ""
; SafetyNutKeySize = 0.0
; SafetyNutThick = 0.0
; ShipNumber = ""
; Tension = 0.0
; ThreadedRod = 0
; TotalCount (RO) = 0
; TrueColor = #<VLA-OBJECT IAcadAcCmColor 0000028185511c50>
; Visible = -1
; Washer2Display = 0
; Washer2Partlist = -1
; WasherDisplay = -1
; WasherPartlist = -1
; WedgeWasher2Display = 0
; WedgeWasher2Partlist = 0
; WedgeWasherDisplay = 0
; WedgeWasherPartlist = 0
; Weight (RO) = 0.381242
; Xaxis (RO) = (-0.0522163 0.998636 2.03474e-16)
; Yaxis (RO) = (-6.87954e-16 -2.39723e-16 1.0)
; Methods supported:
; ArrayPolar (3)
; ArrayRectangular (6)
; BuildName ()
; CalculateWeight (1)
; Copy ()
; Delete ()
; GetBoundingBox (2)
; GetExtensionDictionary ()
; GetInsertUcs (1)
; GetMidLineUcs (1)
; GetObjectDisplayMode ()
; GetXData (3)
; Highlight (1)
; IntersectWith (2)
; Mirror (2)
; Mirror3D (3)
; Move (2)
; RecomputeBoltLength ()
; RetrieveGeometry (1)
; Rotate (2)
; Rotate3D (3)
; ScaleEntity (2)
; SetObjectD
Select Entity to Dump
isplayMode (1)
; SetPartOrigin (1)
; SetXData (2)
; TransformBy (1)
; Turn ()
; Update ()