GUI for symbol instance preview?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
GUI for symbol instance preview?
Hello!
How do you think, what GUI component is using for symbol instance preview?
- Labels:
-
Toolkit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Label and setting image file with ProUILabelBitmapSet() API should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This is good if you have predefined picture.
But I want to draw symbol instance on the fly, how Creo is do.
One way is collect all items from symbol instance and draw into Drawing area component. But it is not very easy!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes, It is the best way to do same. But I would go with 5 to 7 image available as different symbol representation and show specific image for concerned symbol.
This would save considerable amount of effort, but it is not the best solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Ketan_Lalcheta I'm agree with you. No seeing easiest way for now. Thank you for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Parsing the symbol is painful, but what you can do is:
- Create your own plotter driver
- open a symbol in a tmp drawing
- use you plotter driver and render your symbol
A plotter driver is not that complicated, you have only to bind a couple of primitives, like text, lines, arcs... If you have something like a canvas to draw in PTC‘s GUI you can bind the driver function to draw your symbols. You may have an Bounding Box issue, but this should be solvable 🙃