cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

retreiving a symbol into a drawing

msteffke
12-Amethyst

retreiving a symbol into a drawing

G'morning,
I need to retreive a symbol into a drawing. The symbols are generic notes, or could even be small details that need to be in every drawing. It looks like I should use the function ProDrawingSystemDtlsymdefRetrieve, but how do I place this creature (assign a point) once I have it retreived? I see no funtion for this anywhere.
Thanks, Mark

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

Hi Mark -

My recommendation is that you create a small test program to experiment
with the
functions for ProDtlattach, ProDtlsyminst and ProDtlsyminstdata. My guess
is that
you will need the functions ProDtlattachAlloc(), ProDtlsyminstdataAlloc(),
ProDtlsyminstdataDefSet(), and ProDtlsyminstCreate() to start.

To be honest, I've written a couple of applications that tinker with
symbol defintions
and instances, but I haven't done any work with the ProDtlattach data
structure. My
guess is that you will need to perform drawing-to-screen coordinate
transformations
to place your symbols correctly. You would be reasonable to conclude that
working
with drawing symbols requires a lot of coding and testing.

> The symbols are generic notes, or could even be small details that need
to be in
> every drawing.

We've had good results implementing our standardized notes as ProDtlnote
entities.
You can use the ^A^B and &SYM() sequences to place symbols in your notes.
I have
to admit that working with ProDtlnote entities is also very
code-intensive, though.

Good luck with this.

|+| M a r k |+|

Mark Stallard
Raytheon Company
Sudbury, Massachusetts (US)


Mark Steffke <-> wrote:

> G'morning,
>
> I need to retreive a symbol into a drawing. The symbols are generic
notes, or could
> even be small details that need to be in every drawing. It looks like
I should use
> the function ProDrawingSystemDtlsymdefRetrieve, but how do I place
this creature
> (assign a point) once I have it retreived? I see no funtion for this
anywhere.
>
> Thanks, Mark
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration