Skip to main content
7-Bedrock
August 16, 2023
Question

Only top Assembly CAD converts STEP files

  • August 16, 2023
  • 2 replies
  • 1846 views

I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.0.1

Is there any options for STEP file generation on the CAD-Worker or Theorem adapters ?

In case of there is an Assembly CAD Object and the CAD has multiple child CAD Objects, I want only one STEP file to be created for the target Assembly CAD Object. (Sub-CAD Objects do not need to create STEP files)

Here are the errors that I faced
n/a

2 replies

HelesicPetr
22-Sapphire II
22-Sapphire II
August 16, 2023

Hello @Jungwon 

 

You can add IBA attribute to the CAD and based on the attribute value you can set publishrules if the STEP should be generated or not. 

for example generateStep = yes

then based on the Windchill Help you can set publishRules to achieve what you need. 

Evaluating Publish Rules

Yes user has to set the IBA attribute in the CAD

 

An another option is customization with approval process or another workflow process.

You can send the object to visualization with add-hoc publish rule by code.

Programmatically check if the assembly is top one and send it to the visualization with own publish rules. (publish rules has to be activated)

 

Hope this can help you

 

PetrH

 

jbailey
18-Opal
August 16, 2023

You could use publish rules for this - xml config loaded into Visualization Configuration Administration. (https://support.ptc.com/help/wnc/r12.1.1.0/en/index.html#page/Windchill_Help_Center/WVSPublishRules/WVSPublishRulesUsePubRules.html)

 

 

<!-- THIS IS A CONDITION FOR RELEASED CREO ASM FILES -->
<condition name="CREO_REL_ASM">
	<and>
		<attribute name="epmdoc_CADName" regex=".*\.asm$"/>
		<attribute name="epmdoc_lifeCycleState" value="Released"/>
	</and>
</condition>


<if condition="CREO_REL_ASM">
	<publish on="checkin"/>
	<publish on="unknown-source" additional-files="publish_creo_rel_asm">
		<param-set-ref name="CREO_REL_STEP"/>
	</publish>
	<publish on="create-representation" additional-files="man_publish_creo_rel_asm">
		<param-set-ref name="CREO_REL_STEP"/>
	</publish>
	<publish on="schedule" additional-files="publish_creo_rel_asm">
		<param-set-ref name="CREO_REL_STEP"/>
	</publish>
	<publish on="manual-post" param-set="CREO_REL_STEP"> </publish>
</if>

<!-- THIS SECTION DEFINES WHAT ADDITIONAL FILES ARE PUBLISHED FOR ON DEMAND, RELEASED CREO ASM FILES -->
<additional-files name="publish_creo_rel_asm">
	<file display-label="Released STEP" type="step" default="true" output-prefix="STEP"/>
</additional-files>
<additional-files name="man_publish_creo_rel_asm">
	<file display-label="Released STEP" type="step" default="true" locked="false" output-prefix="STEP"/>
</additional-files>

 

HelesicPetr
22-Sapphire II
22-Sapphire II
August 16, 2023

HI @jbailey 

Good example. Your configuration generates steps for all released assemblies.. @Jungwon wants that only the TOP assembly contains the step, doesn't he?

 

PetrH

jbailey
18-Opal
August 16, 2023

Yeah, That's why I sent him to the help files as did you for detailed information.  So many ways to solve this problem.  There is a field that shows up for filtering in the workspace (Top Level Object)... I don't know if this is just an alias though. I wonder if this can be used?

 

https://www.ptc.com/en/support/article/CS290775?source=search

 

jbailey_0-1692188615330.png