Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi,
I would like to know why below API displays table I am trying to create into drawing even though it is PRO_B_FALSE in API argument?
ProDrawingTableCreate((ProDrawing)drawing, tdata, PRO_B_FALSE, &table);
Regards
Ketan
Solved! Go to Solution.
Hi Kelan -
I have used many of the ProDrawing* functions in Creo Parametric Toolkit, but not (as far as I know) ProDrawingTableCreate.
I looked at the documentation and noticed that that the 3rd parameter (display) is defined as int, not ProBoolean. The sample
code also shows the value 1 instead of PRO_B_TRUE. That suggests that the appropriate value in your case would be 0.
Would that make a difference? Probably not, because the ProBoolean enum defines PRO_B_FALSE = 0. It's worth a try,
anyway.
I have two suggestions:
|+| M a r k |+|
Hi Kelan -
I have used many of the ProDrawing* functions in Creo Parametric Toolkit, but not (as far as I know) ProDrawingTableCreate.
I looked at the documentation and noticed that that the 3rd parameter (display) is defined as int, not ProBoolean. The sample
code also shows the value 1 instead of PRO_B_TRUE. That suggests that the appropriate value in your case would be 0.
Would that make a difference? Probably not, because the ProBoolean enum defines PRO_B_FALSE = 0. It's worth a try,
anyway.
I have two suggestions:
|+| M a r k |+|
Confirming that the 'int' is a historical artifact, functionally it is boolean in that the behavior is driven by 'zero vs. non-zero' value.
Having display = 0 / FALSE / PRO_B_FALSE avoids displaying the table immediately, so you can create the table, then fill out with notes before displaying it, so to avoid a 'flicker'. It does not, however, mark the table as hidden, so it will be displayed on the next graphics refresh. Putting the table on a blanked layer, or Hiding it, is indeed how you would go about making a table that you don't want to be shown at all for now.
Hi All,
Thank you very much for helping me on this.
I am able to hide drawing table using PromodelItemHide.