Robot API - panel cut - Parameters

Robot API - panel cut - Parameters

hvdsidf
Enthusiast Enthusiast
1,032 Views
1 Reply
Message 1 of 2

Robot API - panel cut - Parameters

hvdsidf
Enthusiast
Enthusiast

Bonjour,

 

Could you please show me the code VBA to show the parameters below for the panel cut:

     1. Diagramme Description = "texte"

     2. Diagramme name = "un check"

     3. Fill type = "Uniform"

     4. show the window "panel cut" as below by API.

 

Capture 1.JPG

I've tried to find them in the manual "Robot API.pdf", I know that we can do it with API, but I don't know.

 

Thanks in advance,

HUA Van Dong

SIDF

Accepted solutions (1)
1,033 Views
1 Reply
Reply (1)
Message 2 of 2

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution

Hi @hvdsidf

 

 

Could you please show me the code VBA to show the parameters below for the panel cut:

     1. Diagramme Description = "texte"

 

See below

 

     2. Diagramme name = "un check"

 

It should be always displayed

 

     3. Fill type = "Uniform"

 

See below

 

     4. show the window "panel cut" as below by API.

 

  

Using Robot API you can open graphical windows and tables , not dialog windows.

 

 

 

Unfortunately due to API issue these lines do not work

 

vue.ParamsPanelCut.Position = I_VDPT_IN_PLANE ' I_VDPT_NORMAL

vue.ParamsPanelCut.Descritpions = I_VDDT_LABELS 'I_VDDT_TEXT

vue.ParamsPanelCut.Filling = I_VDFT_FILLED

 

The workaround :

flag 1 - labels (0 for nothing)

flag 2 - text (0 for nothing)

flag 256 - inplane ( 0 for normal)

flag 512 - filled ( 0 for fence)

 

so

to display :

Labels + inplane+ filled :

vue.SetVisibilityStatus I_VVST_MAPS_DEFORMATION, 1 + 256 + 512

 

to display :

text + normal + filled :

vue.SetVisibilityStatus I_VVST_MAPS_DEFORMATION, 2 + 0 + 512

 



Rafal Gaweda