Upload
butterwecke
View
156
Download
1
Tags:
Embed Size (px)
Citation preview
5/27/2018 Creo 210 Admin Guide to ProductView
1/48
An Administrators Guide to
ProductView Publishing
David Haigh
June 2011LLNL-PRES-484460
This work performed under the auspices of the U.S. Department of Energy
by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344
5/27/2018 Creo 210 Admin Guide to ProductView
2/48
2 2010 PTC
Agenda
> Publishing Components
> Hardware Options
> Software Install
> Worker Setup
> Server Setup
> Worker Agent Config> Trouble Shooting
> Security Issues
> Watermarks
> Publish Scheduler Administrator
> Client Install
> ProductView Express
> Compressed 3D Thumbnails
> Post Publishing Rules
Slides only, not
covered in talk
5/27/2018 Creo 210 Admin Guide to ProductView
3/48
3 2010 PTC
Publishing Components
Worker Agent
User Auth File
Agent.ini
Adapters
Authoring
Software
GSWorker
Shared FolderDistiller
Adapters do the
publishing using theauthoring software
They also contain the
recipe files for the
publishing job
ProE & MS Office
GSWorker opens
communication ports
on the worker
Share folder is where
files to be publishedare dropped so the
worker can process
them
IIS and FTP are
optional
Workers move the
files, communicate
with the GSWorker,
and attach the
viewable to the
object.
Auth file contains ausername &
password
Agent.ini opens
communication ports
on the server and
starts the WorkerAgents
Adobe Distiller
Server is required to
create pdfs of MS
Office files
32bit OS
FTP ServerIIS
5/27/2018 Creo 210 Admin Guide to ProductView
4/48
4 2010 PTC
Publishing Components - Creo
Worker Agent
User Auth File
Agent.ini
Adapters
Authoring
Software
GSWorker
Shared FolderLiveCycle
Adapters do the
publishing using theauthoring software
They also contain the
recipe files for the
publishing job
ProE & MS Office
GSWorker opens
communication ports
on the worker
Share folder is where
files to be publishedare dropped so the
worker can process
them
IIS and FTP are
optional
Workers move the
files, communicatewith the GSWorker,
and attach the
viewable to the
object.
Auth file contains ausername &
password
Agent.ini opens
communication ports
on the server and
starts the WorkerAgents
Adobe LiveCycle
Server replaces
Distiller
32bit OS
FTP ServerIIS
5/27/2018 Creo 210 Admin Guide to ProductView
5/48
5 2010 PTC
Monolithic Setup
Worker Agent
User Auth File
Agent.ini
Windchill Server
Adapters
AuthoringSoftware
GSWorker
Shared FolderDistiller32bit OS
5/27/2018 Creo 210 Admin Guide to ProductView
6/48
6 2010 PTC
Separate Worker Setup
Worker Agent
User Auth File
Agent.ini
Windchill Server
Adapters
Authoring
Software
GSWorker
Worker Machine
Shared Folder
Distiller32bit OS
FTP Server
IIS
5/27/2018 Creo 210 Admin Guide to ProductView
7/48
7 2010 PTC
Multiple Worker Setup
Distiller
Worker Agent
User Auth File
Agent.ini
Windchill Server
Adapters
Pro/Engineer
Software
GSWorker
ProE Worker Machine
Shared Folder
Adapters
MS Office
Software
GSWorker
Doc Worker Machine
Shared Folder
32bit OS
5/27/2018 Creo 210 Admin Guide to ProductView
8/48
8 2010 PTC
Software Install Order
> Set up the Worker machine first
> Configure the PDMLink Server second
> Finally setup the Worker Agent
5/27/2018 Creo 210 Admin Guide to ProductView
9/48
9 2010 PTC
Worker Software Install
Distiller
Adapters
ProEngineer
MS Office
GSWorker
Worker Machine
Shared Folder
32bit OS
> Install the Required Authoring Applications ProE
MS Office
Adobe Distiller
> Setup the shared folder Used for file transfers Write permissions for everyone
> Optionally setup IIS and a FTP server Setup a ftp virtual folder Name & path of folder is
unimportant
> Install the Adaptor Software
Select all the ProE options Select the Documents Adapter
Select the Thumbnail Generator
Configure as a Windows Service
Install from a local drive, no spaces in installer path
No spaces in the setup directory path, no networked drive
5/27/2018 Creo 210 Admin Guide to ProductView
10/4810 2010 PTC
Worker Software Install
For SSL this has to be an actual user
5/27/2018 Creo 210 Admin Guide to ProductView
11/4811 2010 PTC
ProE Worker Setup
> Configure the ProE to PV Adapter Run Proe2pv_config.exe In \bin
Make sure:
Client/Server Version matches
ProE Command matches
ProE version matches
ProE Date-Code matches
Server Host name matches, not fully qualified
Leave the port number at default
Pick Setup This creates the proe_setup dirand startup scripts
Dont pick Test Server at this time, it will fail.Leave that for trouble shooting
5/27/2018 Creo 210 Admin Guide to ProductView
12/4812 2010 PTC
ProE Worker Configuration
> Configure ProE The config.pro has to go into the proe_setup folder
Assign the pen file location in this config
Turn off Datums, Points, Coord Sys, etc.
> Configure the Recipe File Use proe2pv.rcp in the proe_setup folder Need to decide on hpgl or pdf as the output format.
> HPGL2 vs. PDF HPGL:
Requires ProductView, Allows Markup and Overlaycompare with ProductView
PDF:
Common Format, Markup and Overlay compare onlyavailable with full version of Acrobat
.
5/27/2018 Creo 210 Admin Guide to ProductView
13/4813 2010 PTC
ProE Worker Recipe Configuration
Some downstream applications
may not know how to deal with
compressed hpgl files
Make sure this matches your
ProductView version
5/27/2018 Creo 210 Admin Guide to ProductView
14/4814 2010 PTC
ProE Worker Recipe Configuration
> Configure HPGL2 Recipe ProE Plotter should be an hpgl2 unit
32bit machines should use Minimum Memory
HPGL
.
5/27/2018 Creo 210 Admin Guide to ProductView
15/4815 2010 PTC
ProE Worker Recipe Configuration
> Configure PDF Recipe Change the Drawing Output to PDF
.
5/27/2018 Creo 210 Admin Guide to ProductView
16/4816 2010 PTC
ProE Worker Recipe Configuration
> Configure PDF Output Setup Select Use pentable to control line
weights
The other settings are as I like
You may want somethingdifferent
.
5/27/2018 Creo 210 Admin Guide to ProductView
17/4817 2010 PTC
Document Worker Setup
> Configure the Doc to PV Adapter Doc2pv_config.exe in the loadpoint
bin dir
Make sure:
Client/Server Version matches
Server Host name matches and is
not fully qualified
Leave the port number at default
Pick Setup, this creates the doc_setupfolder and startup scripts
I didnt modify the recipe file for the doc
worker
5/27/2018 Creo 210 Admin Guide to ProductView
18/4818 2010 PTC
Server Setup
> Install: ProductView Client allows users to download the software from PDMLink
Thumbnail Generator and Viewable Compression Utilities even if using separate workers
> Setup a user that has read access to everything Some people use the root user, wcadmin
> Configure wvs.properties settings
Set publish.cadconvert.PROE to be:com.ptc.wvs.server.publish.CadConvertPROE,useworkerdownload=$(wt.home)$(wvs.dir.sep)auth.properties
auth.properties was fileadaptorauth.propertiesThis is the filename the system looks for
Using the old name in this property can cause some confusion when dealing with PTCs
help line.
5/27/2018 Creo 210 Admin Guide to ProductView
19/4819 2010 PTC
Server Setup
> Auth.Properties File The syntax is:
auth=:
For example, auth=publish:productview
> Additional Properties
Force Republishing on life cycle state changes use if release state is on drawingpublish.republishonepmdocumentchange = true
Remove completed jobs
wvs property
deleteCompleted.enableOnContainers = truewt properties
wt.queue.removeCompleted.PublisherQueue = true
wt.queue.removeCompleted.PublisherQueue1 = true
wt.queue.removeCompleted.PublisherQueue2 = true
wt.queue.removeCompleted = true
Dont use @ in this password. It
gets doubled when sent. Best
to avoid all special characters
5/27/2018 Creo 210 Admin Guide to ProductView
20/4820 2010 PTC
Worker Agent Setup
> Configure a new Worker Agent From Site, Utilites, Worker Agent Administrator, pick Configure
> Add a worker
Dont fully qualify the host name of the worker. Let the system resolve it.
Select the type of Worker, ProE or Office
5/27/2018 Creo 210 Admin Guide to ProductView
21/4821 2010 PTC
Worker Agent Setup
> Worker Location Use Winchill Serverfor a monolithic install
Use Different machine for separate workers
> Path to startup command on worker Copy path from worker machine
Select AutoStart & AutoErrorStop
Enter times
5/27/2018 Creo 210 Admin Guide to ProductView
22/4822 2010 PTC
Worker Agent Setup
> Port Assignment Default is 601
> Common File System Path Use FTP or UNC path
FTP requires username & password
FTP user real or anonymous
5/27/2018 Creo 210 Admin Guide to ProductView
23/4823 2010 PTC
Worker Agent Setup
5/27/2018 Creo 210 Admin Guide to ProductView
24/4824 2010 PTC
Worker Agent Setup
> Save the File This writes the data to the agent.ini file
> Reload the Worker Agent Pick Reload Worker Agent
Then pick Return to Worker Agent Administrator
5/27/2018 Creo 210 Admin Guide to ProductView
25/4825 2010 PTC
Worker Agent Setup
> Try to start the worker Pick the Green Flag Green means Start, Red means Stop
May need to pick the left flag twice
> Test a Manual Publish Pick on the Pyramid for a ProE object
Pick on Publish Monitor
5/27/2018 Creo 210 Admin Guide to ProductView
26/4826 2010 PTC
Trouble Shooting Server Side
> Checking Communication netstat -a | more
Look for port 5600
TCP :5600 :0 LISTENING
If you dont see this line the agent.ini file is messed up
> Fixing the agent.ini manually edit \codebase\agent.ini so it only has the following lines
[agent]
port=5600
transferpath=$(wt.temp)\transfer
numworkers=2 Stop & start the Windchill service
Check the port again with netstat
From worker, telnet 5600
Reconfigure the worker
Successful telnet session
looks like this
5/27/2018 Creo 210 Admin Guide to ProductView
27/48
27 2010 PTC
Trouble Shooting Server Side
> User password in auth.properties Make sure you dont have an @ in the password
Avoid all special charaters
Has the users password expired? If so, your workers are broke
> Common File System is Writable
test by typing \\\ in the folder browser e.g., \\myworker\viewable_files
Try to create a folder or file on the remote file system
Is the folder shared out? Are the permissions correct?
> FTP site virtual folder Go to Default FTP Site, and use RMB menu to pick New > Virtual Directory http://msdn.microsoft.com/en-us/library/6ws081sa.aspx
> Monitor log files when Publishing \logs\cadagent Warning, files have name and password in clear text
http://msdn.microsoft.com/en-us/library/6ws081sa.aspxhttp://msdn.microsoft.com/en-us/library/6ws081sa.aspxhttp://msdn.microsoft.com/en-us/library/6ws081sa.aspxhttp://msdn.microsoft.com/en-us/library/6ws081sa.aspx5/27/2018 Creo 210 Admin Guide to ProductView
28/48
28 2010 PTC
Trouble Shooting Worker Side
> Checking Communication netstat -a | more
Look for port 601
TCP :601 :0 LISTENING
If you dont see this GS Worker Daemon service may not be running
Services should show:
GS Worker Daemon Started Automatic Local System Or a user name
> Too many proe2pv error log files After error proe2pvo.999 is reached, ProE will not start on the worker
Select Stop All in the CAD AgentAdminstrator
Delete all "C:/WINDOWS/TEMP/proe2pvo.* log files on the worker See TAN 136481
> GSWorker issue worker fails to start You may need to Allow service to interact with desktop
https://www.ptc.com/appserver/cs/view/solution.jsp?&n=136481https://www.ptc.com/appserver/cs/view/solution.jsp?&n=1364815/27/2018 Creo 210 Admin Guide to ProductView
29/48
29 2010 PTC
Trouble Shooting Worker Side
> Monitor log files when starting Worker Agents
Lots of useful information in these files\productview_adapters\proe_setup\
monitor_*.log Most errors reported here
helper_*.log
worker_*.log
std.out
trail.txt.*
PV Install & Configuration Guide lists typical errors in the Troubleshooting guide
> Perform the Interactive and command line publishing test The ProductView Install and Configuration Guide has two test to perform
Link to file
> Double check Setup & Recipe Configuration Double check paths
Double check versions
Is the server name fully qualified? If so, the workers will break if the domain changes
Warning, the worker_*.loghas username and password
in clear text
http://localhost/var/www/apps/conversion/tmp/scratch_1/interactive_command_line_test.pdfhttp://localhost/var/www/apps/conversion/tmp/scratch_1/interactive_command_line_test.pdf5/27/2018 Creo 210 Admin Guide to ProductView
30/48
30 2010 PTC
Trouble Shooting Worker Side SSL Issues
> GSWorker Service The service on the worker has to run as a real user. It wont work with Local System
Publishing will break when the user password expires
> Self Signed Certificates Make sure your certificate is stored in the Trusted Root Certification Authorities in I.E.
Make sure ProE starts without any user interaction & can connect to the serverDouble click on proepublish.bat in the adaptors proe_setup folder to test
Also set this config.pro option in the adaptors proe_setup\config.pro
web_browser_homepage about:blank
Did you change certificates? Your workers just broke!
Check I.E. for old out-of-date trusted certificates
> Still Having Problems? Contact PTCs help line
The good thing is, having worked through all these possibilities, you have eliminated alot of things they will have to look at. The bad new is its not a simple problem.
5/27/2018 Creo 210 Admin Guide to ProductView
31/48
31 2010 PTC
Security Concerns
> Log files containing the password for the ProductView user
On the PDMLink Server Machine: PROEqueue.log in logs\cadagent\PROEqueue
StatusMessages.log in logs\cadagent\StatusMessages
*.log in \logs\cadagent\-
Agent.ini in \codebase Contains the ftp username & password
On the Worker Machine: Worker_*.log in the proe_setup or doc_setup folder
Bottom line Search & replace for the username/password on all log files you send to PTC
> Communication between the Worker Agent & Worker is not encrypted Run the worker on the server
Put the worker and server on their own private network segment Create a VPN between the server and worker
> Auth.Properties file has the username & password in clear text Limit access to your PDMLink server, however its still visable from the Worker Agent logs
inside PDMLink assuming you have site access.
5/27/2018 Creo 210 Admin Guide to ProductView
32/48
32 2010 PTC
Watermark Editor
> Watermark Editor Not included with ProductView separate install
Accommodate all parameters names for a field
e.g.,
Same information, different names
ProductView displays what it finds
Useful if you have files from others that
have different parameters Define watermarks for Models, Drawings, etc.
> Watermarks for object types Define watermarks for Models, Drawings, etc.
Help on the Watermark Editor
From Help menu of the editor
http://localhost/var/www/apps/conversion/tmp/scratch_1/Defining%20watermarks.pdfhttp://localhost/var/www/apps/conversion/tmp/scratch_1/Defining%20watermarks.pdf5/27/2018 Creo 210 Admin Guide to ProductView
33/48
33 2010 PTC
Watermarks Preferences ProductView Client
> Add Watermark *.ini files Open ProductView Options, Select Watermarks
Pick Add, select your .ini file and give it a name.
> Add as many Watermarks as you require You assign watermarks based on:
the Lifecycle State
A parameter
This is a yes or no match, no if logic
Released or not, or Proprietary or not, but not both
5/27/2018 Creo 210 Admin Guide to ProductView
34/48
34 2010 PTC
Watermarks Mapping ProductView Client
> Watermark Mapping Lifecycle example Pick a watermark to be the default
Checkmark Include when viewing Pick on Watermark Map
Because I set Work in Progress to be default
we only need to map Released
The Property Name is the Parameter Name
Its case sensitive
The Attribute value is the Lifecycle state name
You could also do the same thing with otherparameters, for example using a different
watermark if an object is Proprietary
5/27/2018 Creo 210 Admin Guide to ProductView
35/48
35 2010 PTC
Watermarks Preferences ProductView Client
> Watermark Preference Client Side The default location for the users ProductView preferences is:
%APPDATA%/ptc/ProductView/user_prefs.xml This file includes the watermark maps
If you want to make these an admin preferences you need to move them to
\preferences\ProductView\ admin_prefs.xml
> Watermark Preference definition Server Side If you want to make these an server side preferences you need to upload them to PDMLink See next slide
> Locking specific Preferences You can lock specific preferences in either the admin_prefs or server_prefs
For example if you are using a different watermark for proprietary objects you may want todisable printing without the watermark
Or you might want to disable printing altogether
Refer to the readme in
\preferences\ProductView\readme.txt
5/27/2018 Creo 210 Admin Guide to ProductView
36/48
36 2010 PTC
Server Side Watermarks
> WVS Properties productview.configfromserver = true
> Loading the watermark file At Site or Org pick Utilities, and Visulization Configuration Administrator
Create a configuration, give it a name
5/27/2018 Creo 210 Admin Guide to ProductView
37/48
37 2010 PTC
Server Side Watermarks
> Loading the watermark & preferences files
Add a file to the configuration, Browse to the *.ini file
Do the same for the server_prefs.xml
Stop and restart the methodserver and tomcat. Server side watermarks should now work
S Sid W k
5/27/2018 Creo 210 Admin Guide to ProductView
38/48
38 2010 PTC
Server Side Watermarks
> Exporting the watermark
You can export the watermarks from your server by picking on this link. You can then import it into another system
> Watermark level priority Watermarks can be defined at:
SiteOrganization
Product/Project
Lower levels override higher levels
If you have a very sensitive product you can assign a watermark just for it
Additi l P d tVi P f
5/27/2018 Creo 210 Admin Guide to ProductView
39/48
39 2010 PTC
Additional ProductView Preferences
> HPGL Viewing & printing
With hpgl2 dont assign a pen table They have line weight defined Set background to White
Set display to Monochrome
> Mouse Button Behavior Best if you set it to be the same as ProE
P bli h S h d l Ad i i t t
5/27/2018 Creo 210 Admin Guide to ProductView
40/48
40 2010 PTC
Publish Scheduler Administrator
> Never start scheduled publishing at the Site or Org context
This will flood your queues with thousands of publishing jobs and bring your system to itsknees!
Always start them from the Product or Project context
Ive seen systems where people set up one Product and just created folders under it for
all the different deliverables they design. Thats a bad idea from a publishing point of view
You can only publish on a context level, not a folder level. If you try to schedule a job on
a huge context, your going to run into the same problem as doing it at the Site or Org
> Clearing Queues from Windchill Shell If you system is choked with jobs you will be force to clear them using the windchill shell
If that doesnt work PTC can give you a jsp to help you delete the jobs
Im not going to give you any commands here because Ibelieve you need to contact PTC to deal with this situation
If you get into this situation, I strongly suggest you call PTC immediately because it will leadto a total denial of service for your users, and it will not take a long time
Put your call in at the highest level, System Down. Because even if its functioning right
then, it wont be.
P d tVi Cli t I t ll
5/27/2018 Creo 210 Admin Guide to ProductView
41/48
41 2010 PTC
ProductView Client Install
> User Initiated Install
Pick Home, Utilties, and Software Downloads ProductView Installation
> Push Install See TPI 14306 How to perform a command-line silent installation of ProductView Lite and
Professional 9.1 Clients.
Note that Lite and Professional are the same software, Pro just needs a license.
P d tVi E
5/27/2018 Creo 210 Admin Guide to ProductView
42/48
42 2010 PTC
ProductView Express
> ProductView Express & ProE
This is how ProE shows you a preview of drawings and models in the embedded browser If ProE isnt installed locally on each machine it may have problems finding PVX
You may need to run the PVX installer on each client to get this working properly
Or you could try adding the path to your ProE startup script
The path is defined in the environment and should be set when the PVX installer is run
\i486_nt\pvx\pvx.msi The installer
Will typically create a path to:
PVX_INSTALL_DIR C:\Program Files\ptc\ProductViewExpress\
P d tVi C d 3D Th b il
5/27/2018 Creo 210 Admin Guide to ProductView
43/48
43 2010 PTC
ProductView Compressed 3D Thumbnails
> This is a manual task Not a publishing process
PTC had no documentation on how to do this. So heres the missing manual
> What is a compressed 3D Thumbnail? Reduced detail when retrieved, full detail loaded when you double click on items
Compressed 3D Thumbnail Some items full detail
P d tVi C d 3D Th b il
5/27/2018 Creo 210 Admin Guide to ProductView
44/48
44 2010 PTC
ProductView Compressed 3D Thumbnails
> Required Software
Need access to the ProductView Adaptors bin directory
> Required Files Download ProductView representation from PDMLink
ProductView Compressed 3D Thumbnails
5/27/2018 Creo 210 Admin Guide to ProductView
45/48
45 2010 PTC
ProductView Compressed 3D Thumbnails
> Required Recipe File The recipe file level1.rcp looks like this:
file=pvsthumb-rcp
ver=5
lastp=spec
adapter/createSubModel=1
Where createSubModel = 1 is the sub-assy level where the thumbnails are created
Changing the number to 2 will create thumbnails at the second level of sub-assys For example, if you have the following structure
Top Assy
Sub-Assy-A
Sub-Assy-1
Sub-Assy-2
Sub-Assy-3Sub-Assy-B
Sub-Assy-4
Sub-Assy-5
Sub-Assy-6
Level 1 will generate 2 thumbnails of the lettered assemblies
Level 2 will generate 6 thumbnails of the numbered assemblies
ProductView Compressed 3D Thumbnails
5/27/2018 Creo 210 Admin Guide to ProductView
46/48
46 2010 PTC
ProductView Compressed 3D Thumbnails
> Required Script
The script, thumb.bat assumes:The bat file itself is in the current directory
The recipe file is named level1.rcp and is in the current directory
The product adapters are installed in C:\ptc\productview_adapters
Also note that the name of the input and output .pvs file is hard coded
set PVIEW_HOME=c:\ptc\productview_adapters
set PATH=%PVIEW_HOME%\bin;%PATH%
pvsthumb -r level1.rcp 01-2_crankshaft_asm.pvs -o level1crank.pvs
Essentially, you download the representation from PDMLink and unzip the file
Copy the bat file and recipe file into the directory with the .pvs and .ol files Edit the bat file for the name of the .pvs input and output files
Double click on the bat file to do the conversion
You should end up with a new .pvs file and a number of new .pvt files
Open up the new .pvs file in ProductView to see the results
Post Publishing Rules
5/27/2018 Creo 210 Admin Guide to ProductView
47/48
47 2010 PTC
Post Publishing Rules
> Allows automating secondary operations after publishing
Allows creating a new WTDocument of a published representation This allows searching on the representation itself. Without this, the representation isattached as secondary content to the source object, so the only way to get to it is to go tothe information page of the source object.
Also allows revision control of the representation itself. Without this, the representationdoesnt really have its own revision because its a child of the parent object.
> For more info Windchill Installation and Configuration Guide Visulization Services, Publishing Rules
Weve not made use of this capability yet, so this is all I know
5/27/2018 Creo 210 Admin Guide to ProductView
48/48
An Administrators Guide to
ProductView Publishing
Questions?
David Haigh
925-424-3931
mailto:[email protected]:[email protected]