Skip to main content
1-Visitor
September 29, 2021
Question

how to know part number of a drawing residing in the workspae

  • September 29, 2021
  • 1 reply
  • 1024 views

Hi Team,

We have a need to build custom code to get part number associated with drawing residing in the workspace of Creo Parametric. Could you please help with this?

1 reply

12-Amethyst
September 29, 2021

I have something like this:

 

Drawing drawing = (Drawing) model;
Models solids = drawing.ListModels ();
Solid solid = (Solid)solids.get (0);

 

There I have the drawing in model.

You will then it in solid.GetFullName()