Wall Selection by VBA (API)

Wall Selection by VBA (API)

faisal.aaouatif
Collaborator Collaborator
554 Views
4 Replies
Message 1 of 5

Wall Selection by VBA (API)

faisal.aaouatif
Collaborator
Collaborator

Good Moorning / evening

im trying to select walls by using VBA , by no way.

i managed to do selection with bars by using Robotbar object and Robobarcollection but can't find a way to do it with walls.

Help appreciated.

0 Likes
Accepted solutions (1)
555 Views
4 Replies
Replies (4)
Message 2 of 5

Rafal.Gaweda
Autodesk Support
Autodesk Support

wall = panel with certain reinforcement or thickness properties (labels) - select by appropriate labels

 

or wall by structural type

 

strtype.jpg

 

 



Rafal Gaweda
0 Likes
Message 3 of 5

faisal.aaouatif
Collaborator
Collaborator

by object type please.

Thank you

0 Likes
Message 4 of 5

Rafal.Gaweda
Autodesk Support
Autodesk Support

My mistake - by structural type I_OST_WALL

 

Dim OC As RobotObjObjectCollection
Set OC = RobApp.Project.Structure.Objects.GetAll

Dim Obj As RobotObjObject
Dim OBJSelString As String

For I = 1 To OC.Count
    Set Obj = OC.Get(I)
    If (Obj.StructuralType = I_OST_WALL) Then OBJSelString = OBJSelString + " " + Str(Obj.Number)
Next I

MsgBox OBJSelString, vbInformation

 



Rafal Gaweda
0 Likes
Message 5 of 5

faisal.aaouatif
Collaborator
Collaborator
Accepted solution

it works ( wall panels should be defined as walls in the object inspector  )

Thank you Very much

0 Likes