Skip to main content
Arena Solutions Logo
      • Community
      • Recently active topics
      • Unanswered questions
      • CAD
      • Creo+ and Creo Parametric
          • System Administration4982
          • Customization3145
          • Manufacturing (CAM)1105
          • 3D Part & Assembly Design21556
          • Analysis2137
          • Creo Parametric Tips442
          • Creo Parametric Ideas5710
      • Creo Elements Direct
          • Modeling292
          • Drafting282
          • Model Manager18
          • System Administration79
          • Creo Elements/Direct Ideas195
      • Addtl Creo Products (View/Sketch/Illustrate/Layout/ Schematics and Creo Direct)
          • Addtl Creo Products (View/Sketch/Illustrate/Layout/ Schematics and Creo Direct)1167
          • Creo View / Illustrate / Schematics Ideas667
      • PLM
      • Windchill
          • Windchill16074
          • Windchill Videos27
          • Windchill Tips96
          • Windchill Customization2645
          • Windchill Navigate351
      • Arbortext
          • Arbortext3659
          • Arbortext Tips94
      • Also ServiceMax1
      • ALM
      • Systems/Software Engineering
          • Systems/Software Engineering2220
          • Systems/Software Engineering Tips31
      • Codebeamer
          • Codebeamer355
          • Codebeamer Tips29
      • Mathcad
      • Mathcad14733
      • Mathcad Installation1389
      • Mathcad Tips69
      • IoT & Connectivity
      • Mfg Solutions & Apps570
      • IoT & Connectivity Tips1071
      • Kepware
          • Kepware949
      • ThingWorx
          • ThingWorx Developers14938
      • Ask the Experts About the Licensing App12
      • Augmented Reality
      • Vuforia Chalk236
      • Vuforia Studio3034
      • Vuforia Studio and Chalk Tech Tips99
      • Vuforia Expert Capture264
      • PTC Education
      • PTC Education Forum4094
      • Creo Manufacturing Group
      • Creo Manufacturing Collaboration Area35
      • PTC Working Groups (Info)
      • PTC "Working Group" Info8
      • PTC Internal Collaboration
      • Generative AI ideas for SO&S6
      • SLM Internal28
      • PTC Community Information Center
      • Welcome & How-To's68
      • PTC Community Feedback276
      • PTC Community Announcements77
      • Customer Success
      • PTC eSupport Help Discussions445
      • PTC eSupport Help Ideas64
      • PTC University Training338
      • Expert Session Recording Library1
      • PTC University LEARN Questions98
      • Networking and More
      • PTCooler "OffTopic"696
      • PTC/USER
          • PTC/ USER Community Networking800
      • Archive Read Only
      • Creo (Previous to May 2018)
          • Creo Modeling Questions5673
      • Integrity Lifecycle Manager New Web UI
          • Integrity Lifecycle Manager Discussions17
          • Integrity Lifecycle Manager Blog5
          • Integrity Lifecycle Manager Ideas3
      • Volkswagen Group Portal
          • Volkswagen Discussions2
          • Volkswagen Blog6
          • Volkswagen Ideas39
      • B&WSoftware - The Creo/Toolkit Experts
          • Discussions46
          • Blog12
      • Model Based Enterprise
          • Model Based Enterprise (MBE) Blog2
          • Discussions12
      • Community Content Groups
          • Data Exchange / Interoperability
              • Discussions31
          • PTC Medical Device Customer Community
              • Discussions3
              • Blog18
      • Innovation Lab
          • Proactive Monitoring & Support2
      • IoT Archive
          • IoT Tech Tips0
          • Expert Sessions Library21
          • Ask Navigate Emily Anything6
      • Champions
          • PTC Community Refresh139
      • Community Archives
      • Creo Simulation Live
          • Creo Simulation Live Tips4
      • Servigistics Customer Advisory Group - SPP
          • SPP Discussions56
          • SPP Ideas23
      • PTCUser - Creo CAD Committee
          • Discussions3
          • Blog1
      • PTC Forum Europe 2016
          • Blogs and Presentations33
      • archive21956
      • Servigistics Tips8
      • Migration Issues and User Requests34
      • Partner Community
          • Partner Information and Collaboration Area148
          • Products and Solutions484
          • Learning Paths23
          • Programs & Tools61
      • Content Review Board4
      • Implementer
          • Discussions28
      • ThingWorx 8.5 RRE23
      • AR Implementer Connect37
      • PTC/USER CAD Survey 2019
          • CAD Survey Questions3
      • Content Requiring Review13
      • IOT Implementer Connect10
      • PTC/User TC and Cust led WG
          • PTC/User Model Based Committee Discussion9
          • Model Based Enterprise Committee Blog9
      • Blogs
          • LiveWorx 2017 Blog12
          • LiveWorx 2016 Blog33
          • PTC/USER Model Based Enterprise Committee Blog3
          • PTC Live Global Blog109
          • Hezky česky Blog270
          • Integral Innovation Experts Blog52
          • B&W Software The Creo/Toolkit Experts Blog21
          • Member Showcase Blog121
          • Training Central0
      • EU TS Advisory Board
          • Discussions5
          • Blog9
      • Integrity Videos3
      • Servigistics
          • Servigistics Blog29
          • Arbortext Videos18
      • LiveWorx 2016 Questions29
      • Archived83
      • Community Issues68
      • NA TS Advisory Board
          • View Exchange13
          • Blogs26
          • Ideas4
      • PTC Creo Sneak Peek
          • Discussions176
          • Ideas41
      • Servigistics Customer Advisory Group - SPM
          • SPM Discussions99
          • SPM Ideas21
      • PTC Mathcad Videos141
      • PTC Community Champions
          • Discussions126
          • Blog16
          • Ideas1
      • Top Enhancements Knorr Bremse
          • Top Enhancements Knorr Bremse Discussions1
          • Top Enhancements Knorr Bremse Ideas29
      • Continental ALM
          • Continental ALM Ideas14
      • DACH Gemeinde Live
          • Discussions91
      • Windchill Customization
          • Blogs7
      • Personal Blogs
          • Jeff Filo's Blog4
          • Francois Lamy's Blog2
          • Contemplating CAD5
          • E-learning with Vladimir Palffy47
          • Rolos Simulate Sources10
          • Dunkelberger's Creo/Windchill TriStar Bl8
          • RWDC Team Blog4
          • Bill Daugherty's Blog5
          • TEAL TORNADOES7
          • SmilingFirefly's Blog5
          • Valery Ochkov's Blog2
          • Scott Morris's Blog3
          • Hello, CAD!52
          • Joshua Houser's FRC Blog4
          • Creo ARX materials14
          • Preben Reventlow's Blog1
          • The New Village Crier26
          • Alan Belniak's PlanetPTC Blog13
          • Bowl's Creo Tutorial Blog4
          • e-Cog Blog4
          • Madhavi Ramesh's Blog56
          • Personal Blog Posts196
          • Now here's the thing....................8
          • PTC Express39
          • GAF's Blog7
          • Engicon5
          • FIRST ROBOTICS FRC 1086 Blue Cheese/FT2
          • Evan G's Blogtime Array11
          • All about PTC's eSupport Portal3
          • Daniel Castillo builes's Blog3
          • My years with Integrity3
          • engineering-matters.com11
          • The Rants of an Average Systems Admin9
          • Mike Brattoli's Blog6
          • Ailbhe in short32
          • Marco's Drafting Solutions6
          • Pater's All Things WGM Blog15
          • The Zone5
          • Francis Greensides's Blog4
          • Jean-Sebastien Olivier's Blogue7
          • Kael Lizak's Blog1
          • MECHANICAL BLUES6
          • FIRST Team 28777
      • European MBD Group
          • Discussions11
  • Ideas
  • Events
  • Groups
  • Community Resources
  • Internal Collaboration
  • Community Team
  • Take the Windchill Survey!
Arena Solutions Logo
  • Create topic
  • Login
  • Home
  • Community
  • PLM
  • Windchill
  • Windchill Customization
  • WVS: Afterloader hook method to rename files generated by CAD Worker from client side viewables?
C
CarTorn92630
8 years ago
Aug 28, 2018 3:42 PM UTC
Question

WVS: Afterloader hook method to rename files generated by CAD Worker from client side viewables?

  • 4 replies
  • 3448 views

For our Windchill Visualization Services, we are using Afterloader (AfterEDRloader3) hook method to rename visualization files to PartNumber_Revision based on attribute values.

 

This method is identified in: Article - CS252900 - Windchill PDMLink: An example Afterloader hook method to add the attribute value from the viewable files to the name of output Additional File Types

 

This works very well for EPM Docs pushed from Commonspace and message ""AfterEDRloader starts: Checking if object is EPMDoc: appears in WVS Job Monitor log file when method completes.

 

Now we want to leverage client side preprocessing of visualization files per: Article - CS21380 - How to edit Client-side Recipe configuration used by Creo Parametric and the Workgroup Manager clients during Windchill Custom Check-in of "Models and Viewables"

 

However, the Afterloader hook method fails to rename the visualization files when sent to WVS CAD Worker and message "AfterEDRloader: Return Code - Bypass" appears in WVS Job Monitor log file when method is called.

 

How do we get the AfterEDRloader method to also rename visualization files generated by CAD Worker from client side viewables?

 

 

 

 
  • EPM

4 replies

  • Newest first
  • Most Liked
T
TomU
8 years ago
Aug 28, 2018 9:45 PM UTC

That message is coming right out of the AfterEDRloader3.java file:

// getPropertyStringValue
String subdirectory = getTransferDir(edFileName);
File pvs = new File(subdirectory, edFileName);
if (pvs == null || !pvs.exists()) {
	ret[0] = "AfterEDRloader: Return Code - Bypass";
	return ret;
}

You'd have to add some extra debugging lines to be sure but I'm guessing something is different with the bundle of files based on how the representation is being created.  (From CS66824, "When the CAD Document is then published by WVS, the pre-converted viewables in the attached PVZ are used to create the Representation content, instead of publishing using a server-side CAD worker.")

 

More than likely edFileName (in the previous section) is never getting set:

// get the ed file Name for this representation
String edFileName = null;
Representation ch = (Representation)ContentHelper.service.getContents(rep);
appDatas = ContentHelper.getContentList(ch);
int num_of_files = appDatas.size();

for (int i = 0; i < appDatas.size(); i++) {
	appData = (ApplicationData)appDatas.get(i);
	if (appData.getRole() != null && appData.getRole().equals(ContentRoleType.PRODUCT_VIEW_ED)) {
		edFileName = appData.getFileName();
		break;
	}
}

 

I'm actually curious why you would want to switch to this method of viewable generation?  There are an awful lot of disadvantages.  (Again, see CS66824.)  If it's due to worker availability when publishing very large assemblies, there are ways around this where you can direct very large assemblies to certain cad workers and everything else to other workers.

C
CarTorn92630Author
8 years ago
Sep 5, 2018 12:39 AM UTC

Thanks, Tom.

One of our engineers found the issue and corrected it.

We are not switching to this method, merely lookign at using it to augment our existing WVS CAD Worker capabilities.

Our existing WVS utilizes dedicated CAD Workers for multi-language pdf, step, pvz and dwg generation.

This works well enough; however, in our time sliced VM environment we had release drawing pdf's that would consistently take 10-20 minutes or even up to an hour to generate a pdf.

With considerable performance tuning I was able to reduce this 25-40%; however, this was still not a good solution as it did not scale very well. For example, reducing the time from 20 mins to 12 mins looked good in powerpoint. However, in production I might have 10 of these 12 minutes jobs ahead of mine, so incrementally faster CAD Workers wasn't a very useful solution.

The beauty of client side viewables is that most of the processing occurs locally and the CAD Workers are only used to convert the attached client side viewable and bring it back into windchill as a viewable.

The conversion of client side viewable to release drawing pdf by CAD Worker is staying pretty consistent at 5 seconds no matter how many files in the source file or how many drawing sheets are generated.

To me, this is much more acceptable and very scalable and with a couple of our clever engineers figuring out how to rename the pdf to partnumber_revision witth AfterEDRloader3 prior to passing it back to Windchill, this may be automated performance we have been looking for.

 

G
G_U
5 years ago
Mar 28, 2021 9:09 AM UTC

HI, 

 

I also tried the article CS252900 but not working for me i deployed as it is the customization. and added two-property -


xconfmanager -s publish.afterloadermethod="com.ptc.wvs.util.AfterEDRloader3/renameAdditionalfiles" -t codebase/WEB-INF/conf/wvs.properties -p

 

xconfmanager -s

publish.afterloadermethod.propertyincludelist="epmdoc_Number,epmdoc_iterationDisplayIdentifier" -t codebase/WEB-INF/conf/wvs.properties -p

 

and tried to republish the one drawing but still pdf name is filename+Version.pdf.

 

Anyone, please help us.

Thanks, 

Gourav Upadhyay

Windchill Satisfaction Survey

Help shape the future of Windchill. Take our 5-minute survey and share your feedback.

Take the Survey ↗

Powered by Gainsight
Terms & ConditionsAccessibility statement

Sign up

Already have an account? Login

Login with SSO

Login with oauth
or

    Login to the community

    No account yet? Create an account

    Login with SSO

    Login with oauth
    or
      Forgot password?

      Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

        Back to overview