Skip to main content
7-Bedrock
March 3, 2017
Question

How to added part models to Simple representation with J-link / vb api

  • March 3, 2017
  • 0 replies
  • 1277 views

I have successfully created new Simple representation vb.net. But not able to add part models to it.

 

Since pfcls codes for both vb and j-link will be similar. Please any one guide.

 

My codes are below

Dim newsimRep As IpfcSimpRep

Dim newsimRepInstrs As IpfcCreateNewSimpRepInstructions

Dim newrepname as string="Fix"

 

Dim solid As IpfcSolid

 

Dim simRepItem As IpfcSimpRepItem

 

newsimRepInstrs= (New CCpfcCreateNewSimpRepInstructions).Create(newrepname)

 

newsimRep = solid.CreateSimpRep(newsimRepInstrs)

 

'----------------------------------------

Now I want to add items to this simple representation

Not able to add items to simRepItem

 

Please guide with codes in J-link or VB.net

 

Thanks

 

Gopinath