(API) list panel thickness

(API) list panel thickness

hvdsidf
Enthusiast Enthusiast
550 Views
3 Replies
Message 1 of 4

(API) list panel thickness

hvdsidf
Enthusiast
Enthusiast

Hi all,

I can list all of the bar sections by :

Dim LabelCol As RobotLabelCollection
Set LabelCol = robApp.Project.Structure.Labels.GetMany(I_LT_BAR_SECTION)

For i = 1 To LabelCol.Count

......

Next

 

But why I can not do the same thing with the panel thicknesse:

Set LabelCol = robApp.Project.Structure.Labels.GetMany(I_LT_PANEL_THICKNESS)

There are the different panel thickness in the model but LabelCol.Count is always = 0 ?

 

Thanks in advance,

Dong HUA

 

0 Likes
551 Views
3 Replies
Replies (3)
Message 2 of 4

Rafal.Gaweda
Autodesk Support
Autodesk Support

Hi @hvdsidf 

 

Keep in mind that GetMany returns collection of already assigned labels to model.

If You want to get all labels You have to use GetAvailableNames.

 



Rafal Gaweda
0 Likes
Message 3 of 4

hvdsidf
Enthusiast
Enthusiast

Thank you Rafal for your reply.

 

But the I have many thickness labels which have been assigned for the panel, however, these labels have not been included in the collection (in fact, there is no element in the collection). Why?

 

Best regards,

Dong HUA

0 Likes
Message 4 of 4

Rafal.Gaweda
Autodesk Support
Autodesk Support

Hi @hvdsidf 

 

Sorry, I do not understand.

See below.

getavailablenames.jpg



Rafal Gaweda
0 Likes