Cancel
Showing results for 
Search instead for 
Did you mean: 

api to write solid ID of a group to data table.

Experimenter
Experimenter

anybody knows which api function can list solid ID of an exist group, then write them to data table?

Thanks so much.

TB2006

 

2 REPLIES

Re: api to write solid ID of a group to data table.

Siemens Genius Siemens Genius
Siemens Genius

tb2006,

 

You can use AddEntityData in FEMAP tool objects. I just created a set and added the solids of a selected group into that set. Here's a short script, I'm relatively newer to FEMAP so hopefully this helps.

 

Sub Main
    Dim App As femap.model
    Set App = feFemap()

    Dim solset As femap.Set
    Set solset = App.feSet

    Dim solgrp As femap.Group
    Set solgrp = App.feGroup

    solgrp.SelectID("Select Group")

    solset.AddGroup(FT_SOLID, solgrp.ID)

    App.feDataTable.Lock(False)

    App.feDataTable.AddEntityData(True, FT_SOLID, 0, solset.ID)

End Sub

 

 

Re: api to write solid ID of a group to data table.

Experimenter
Experimenter

Dear T_Giampietro,

 

This is very helpful to me . Thank you so much.