Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

(API) list panel thickness

3 REPLIES 3
Reply
Message 1 of 4
hvdsidf
367 Views, 3 Replies

(API) list panel thickness

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

 

3 REPLIES 3
Message 2 of 4
Rafal.Gaweda
in reply to: hvdsidf

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
Message 3 of 4
hvdsidf
in reply to: Rafal.Gaweda

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

Message 4 of 4
Rafal.Gaweda
in reply to: hvdsidf

Hi @hvdsidf 

 

Sorry, I do not understand.

See below.

getavailablenames.jpg



Rafal Gaweda

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report