Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template name passed to drawing in WindChill with drawing_create #19

Open
victoman1234 opened this issue Jul 17, 2020 · 6 comments
Open

Comments

@victoman1234
Copy link

victoman1234 commented Jul 17, 2020

  • Creopyson version: 0.5.2
  • Creoson version: 2.6.0
  • Python version: 3.7
  • Operating System: Windows 10 Pro 64-bit

Description

Using the drawing_create command to create and save to windchill a new drawing with the Part Name as the Drawing Name.

The drawing is created properly but the name of the selected Drawing Template is used as the name of the new drawing in WindChill. The new drawing has the correct File Name, has the correct Number but does not have the correct name in WindChill.

import creopyson
c = creopyson.Client()
c.connect()
c.server
cprint = c.sessionId
print("\n" + "session Id = " + cprint)
c.drawing_create("bmh_d_eng_detail")
c.disconnect()

2020-07-17 14_31_02-HEXBOLT-1_2-13X1_5 Rev_ New 0 0+ In Work  (Active) - Creo Parametric

@davidhbigelow
Copy link

davidhbigelow commented Jul 17, 2020 via email

@adama2000
Copy link

adama2000 commented Jul 18, 2020 via email

@davidhbigelow
Copy link

davidhbigelow commented Jul 18, 2020 via email

@phaleth
Copy link

phaleth commented Jul 18, 2020

For a CAD document the Name in Windchill is the PTC_COMMON_NAME in Creo Parametric.

@adama2000
Copy link

@victoman1234 did you try setting the PTC_COMMON_NAME parameter on the drawing?

@PiNandanwar
Copy link

PiNandanwar commented Aug 11, 2021

I am not the original user who created this ticket, but I also noticed this issue when creating a drawing.

The one thing I was able to figure out is that if I were to manually create the drawing with the same name, model, and template the PTC_WM_NAME parameter is the same as the drawing.

When I programmatically create the drawing using the Creopyson.drawing.create function, that is when the PTC_WM_NAME variable autofills the template name for that parameter. That parameter is also locked so I cannot just update it with the correct value.

Another thing is that the parameter is only assigned the template name value when I save the drawing. If I just create the drawing in session and do not save, that parameter is empty. However, once I save it, either manually or programmatically, the parameter is assigned the template name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants