BrianDP
Registered:1572446750 Posts: 18
Posted 1601554632
Reply with quote
#1
To hear the good folks at Autodesk tell it, Their program (Inventor) outputs PLT files, and that's how they should be, and the tell me they -CAN'T- turn the prints to match whatever direction we want them to be. Actually we WERE able to get them to turn 90 degrees, just in the wrong direction so when they come into ViewCompanion they're Upside Down! The result of this, is that we have to take EVERY released PLT into Viewcompanion, look at it, and manually turn it to the direction we need it to be so that the Overlay information will fit into the little holes on the drawing (The Stamp, and Information about the quantity for the Job, where to find the part in Stock, and what parent assembly this part is a part of - if it is) So I'm hoping there is a way to automatically have ViewCompanion rotate the drawings so that they correspond to the rolls that we have in our E-Size Xerox Printer. A size is Horizontal, 11W x 8L, B size is Horizontal 17W x 11L, C size is Vertical 17W x 22L, D size is Horizontal 34W x 22L, E size is Vertical 34W x 44L. The Horizontal, or Vertical is how we want them to view in ViewCompanion, which is also how they'll come out on the printer, and on which roll.
BrianDP
Registered:1572446750 Posts: 18
Posted 1602248641
Reply with quote
#2
well, we were able to solve it! It's pretty easy! Viewcompanion /c PLT /ro270 InPlotname.plt outplotname.plt It'd be kinda nice if we could figure out to get it to over-write the original file name since it's a conversion of the first file, and we don't want that one getting confused with the new one we'll have there. This program is the greatest! -Brian
alcad
Registered:1610974743 Posts: 4
Posted 1610977008
Reply with quote
#3
Quote:
Originally Posted by BrianDP well, we were able to solve it! It's pretty easy! Viewcompanion /c PLT /ro270 InPlotname.plt outplotname.plt
Hi' Brian ! Could you explain how to do that? Where to write ? Thank you
BrianDP
Registered:1572446750 Posts: 18
Posted 1611004864
Reply with quote
#4
This is a bummer - I KNOW I responded to this about an hour ago, so if I do this, and then find out I responded twice in different emails, I'm gonna be ticked! Back to the explanation... So as the last email (or my very last one says😉Viewcompanion /c PLT /ro270 InPlotname.plt outplotname.plt
So what this does, is the equivalent of opening Viewcompanion, opening a drawing, and rotating the drawing Once counter Clockwise. Normally when you rotate a drawing - well, ALL the time when you're using the command line interface (CUI for you abbreviation types) - when you rotate a plot you're rotating it Clockwise. Since we can't rotate backwards - or counter clock wise, you can fudge a counter clockwise, but going around the bend - so to speak, and it will be the same as if you had gone -90. The command line interface is pretty sophisticated! Viewcompanion is not just a viewer - it's also a modification program of sorts - Very useful for rotating, setting paper size, and overlaying text on top of the print. Something I use it for every day as part of my plot routine. I add text on top of the drawing, in the title block where the print-room operator used to manually stamp information on the print such as a Job Number, Quantity, and other information such as where the part may be found in the stockroom, or changes in routing that occur specific to this part. These "Markups" as they are called are controlled through an XML style file, which if you've never used one are pretty simple to use, they take the form of line by line adding information in the form of <Bracketed Text> and </Bracketed Text> There are many commands, or command pairs that you can put in the file, such as <Text>SomeThing to Print on the drawing</Text> and Here is part of an XML file (It's called SOMETHING.scmx)
<?xml version="1.0" encoding="UTF-8"?> <SCMarkupFormat> <Header> <Version>15</Version> <Unit>native</Unit> <Application>ViewCompanion</Application> <Calibration>1.0000</Calibration> </Header> <user>------ A 1 is QR Code -------------------</user> <Elements> <Element> <type>Barcode</type> <barcodetype>QR</barcodetype> <layer>0</layer> <page>0</page> <center x="8450" y="2650"/> <size w="500" h="500"/> <text>R64877+P108-014+2</text> </Element> <Element> <type>Text</type> <user>------ B 2 is JOB NUMBER -------------------</user> <Font height='-500' width='0' escapement='0' orientation='0' weight='700' italic='0' underline='0' strikeout='0' charset='0' outprecision='3' clipprecision='2' quality='1' pitch='34' facename='Arial Narrow'/> <insertx>8150</insertx> <inserty>1900</inserty> <rotation>0</rotation> <text>R64877</text> </Element> <Element> <type>Text</type> <user>------ 3 is QUANTITY -------------------</user> <Font height='-500' width='0' escapement='0' orientation='0' weight='700' italic='0' underline='0' strikeout='0' charset='0' outprecision='3' clipprecision='2' quality='1' pitch='34' facename='Arial Narrow'/> <insertx>8750</insertx> <inserty>2375</inserty> <rotation>0</rotation> <text>Qty: 2</text> </Element> <Element> <type>Text</type> <user>------ 4 is BINLOCATION -------------------</user> <Font height='-160' width='0' escapement='0' orientation='0' weight='400' italic='0' underline='0' strikeout='0' charset='0' outprecision='3' clipprecision='2' quality='1' pitch='35' facename='Arial Narrow'/> <insertx>8150</insertx> <inserty>2950</inserty> <rotation>0</rotation> <text></text> </Element> <Element> <type>Text</type> <user>------ 5 is SECT ROUTE -------------------</user> <Font height='-175' width='0' escapement='0' orientation='0' weight='300' italic='1' underline='0' strikeout='0' charset='0' outprecision='3' clipprecision='2' quality='1' pitch='34' facename='Arial'/> <insertx>10330</insertx> <inserty>200</inserty> <alignment>3</alignment> <rotation>90</rotation> <text> #2 </text> </Element> <Element> <type>Text</type> <user>------ 6 is Rest of Binlocations 2 thru N -------------------</user> <Font height='-175' width='0' escapement='0' orientation='0' weight='300' italic='1' underline='0' strikeout='0' charset='0' outprecision='3' clipprecision='2' quality='1' pitch='34' facename='Arial'/> <insertx>200</insertx> <inserty>-155</inserty> <rotation>0</rotation> <text></text> </Element> <Element> <type>Text</type> <user>------ 7 is XSJobno for this Part -------------------</user> <Font height='-175' width='0' escapement='0' orientation='0' weight='300' italic='1' underline='0' strikeout='0' charset='0' outprecision='3' clipprecision='2' quality='1' pitch='34' facename='Arial'/> <insertx>10050</insertx> <inserty>-155</inserty> <alignment>3</alignment> <rotation>0</rotation> <text></text> </Element> </Elements> <Views> </Views> </SCMarkupFormat> You can load this file in through the Markup menu in the program, or you can again use the command line. I like to use the command line because I can control it in batch from from a VBA script. Any questions, let me know! -Brian Prenovost Tarpon Springs, FL
alcad
Registered:1610974743 Posts: 4
Posted 1611046111
Reply with quote
#5
I am very sorry, don't see a command line I have a Pro version.
BrianDP
Registered:1572446750 Posts: 18
Posted 1611087334
Reply with quote
#6
From Windows, you click the start, or Flag menu, and then type "cmd" That should open a black window with a flashing cursor. This is the "Command Line" Sorry, I guess I though everyone knew that, but I guess my assumption was incorrect! To open the command line click the Windows key on your keyboard + R.
you MAY be able to execute the program (start) it right from the command line without any directory to tell the program where Viewcompanion is located, but maybe not. Windows Key-R cmd <enter> This will pull up a black window wish a "C:\_" flashing cursor. Next, either type 'Viewcompanion' right from the
c:\viewcompanion
c:\ prompt, if that fails, "change directory" with the cd command to the viewcompanion program directory, or just execute it right from the c:\ prompt Change directory, then start the program: c:\ cd "\Program files\software companions\viewcompanions\viewcompanion pro\"
c:\program files\software companions\viewcompanions\viewcompanion pro\
viewcompanion -or-
c:\program files\software companions\viewcompanions\viewcompanion pro\viewcompanion ---
Here I've started viewcompanion, and then looked at the help files with he "?" in the upper right of the program, and then Index, and "Command Line Parameters"
Some of this is probably documented in the program itself.
Here is one of their examples to use viewcompanion to convert a pdf to a plt file:
viewcompanion.exe /c PDF input.plt output.pdf These are fairly advanced topics - Using the command line - so you may want to find someone locally to help you with using the command line. Using the Graphical interface, if you can get it to do what you need, will be your best bet. I'm guessing that since you were unfamiliar with the command line prompt that your level of understanding is not 100%. Give what I've shown you here a try, and see if you can't figure it out. Good Luck! -Brian Prenovost Tarpon Springs, FL
alcad
Registered:1610974743 Posts: 4
Posted 1611132243
Reply with quote
#7
Hi, Brian, thank you for your help. Some remarks. CMD command must be entered with Run as administrator option, otherwise it doesn't work. Does the file we want to rotate have to be in the root view companion folder? I tried to rotate a plt file from another folder, it doesn't work. And the main. Output rotated file has size a 1000(thousand) times bigger then original file !!! very strange... Thank you Albert
BrianDP
Registered:1572446750 Posts: 18
Posted 1611147746
Reply with quote
#8
Well, thank you for that insight! Since I am the local admin on my machine I guess It doesn't matter, although I'm not sure about my clients who run the routine I wrote though, they don't execute it with admin rights and they seem to be able to do it - but I'm glad you found what works for you! Well, when you issue the rotate command, the input and output files must include the full path to the files. I tried, but It's hard expressing to someone else how to use this - it is an advanced topic. As for the 1000%, we have some files that do come out wrong like that, but it's only a fraction files we go through, so we just ask engineering to re-plot these files, and then everything starts to work! -Brian