AutoCAD Inventor :: Change Printer Paper Size With ILogic

Jun 28, 2013

I have created the code to print out the pages from a drawing using Ilogic and the Print Manager.However, I cannot get the ilogic code via the Print Manager to change either the orientation OR the paper size to suit the print out.

For example, If I have an A3 drawing i can create the Ilogic code for the Print Manager to select the page size of A3 (kPaperSizeA3) within the code, but when I run the code the printer will ONLY select the Default of A4 paper.

The A3 paper is in a different tray but I cannot get the Print Manager to Select the A3 Paper.The printer we are having this issue with is a HP LaserJet 5200...We are also having the same problem of Printing out 1:1 Scale drawing to an A0 Plotter.  I cannot get the Print Manager to change the Output Page Size either.

This is for a HP DesignJet 430...I have just tried to use the iLogic Snippet for Printing, and if you change the page size to suit A3 (kPaperSizeA3), the printer asks for a paper size of 312mm x 210mm....  This was with the HP LaserJet 5200.

how to get the Printer output paper size changed through the Print Manager.

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Set Default Printer Paper Size

Sep 8, 2012

I need to "Programatically", using Visual Studio, set the default printers paper size to either "A4" or "A3".

I have the following code that gets the required paper size ("A4" or "A3") from the registry and checks that the default printer supports "A3". If it does I want to set the paper size to "A3".

Here is my code so far.

Imports Microsoft.Win32

Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim SetPaperSize As String
Dim PrinterPaperSize As String
SetPaperSize = My.Computer.Registry.GetValue("HKEY_CURRENT_USERSoftwareMechTools", "Printer Paper Size", "0")
For Counter = 0 To PrintDialog1.PrinterSettings.PaperSizes.Count
PrinterPaperSize = PrintDialog1.PrinterSettings.PaperSizes.Item(Counter).PaperName
If PrinterPaperSize = SetPaperSize Then
' MsgBox(SetPaperSize) HERE IS WHERE I NEED THE CODE TO SET THE PAPER SIZE
Exit For
End If
Next
End
End Sub
End Class

View 1 Replies View Related

AutoCAD Inventor :: Apprentice Server - Printer Always Print Out The Drawing On Letter Size Paper

May 20, 2005

I am having problems printing to drawing sizes other then A Size (Letter).

I have scanned through the messages in this Newsgroup and tried everything that I have found, including making sure that I set the properties in a specific order.

No matter what size I specify, the printer spits out the drawing on an A Size piece of paper.

Here is my
Private objApprenticeServerApp As New ApprenticeServerComponent
Private Sub PlotInventorDrawing(strDwgPath As String, strPlotSize As
String, strPlotter As String)
' Open a document.
Dim odoc As ApprenticeServerDocument
[Code] .......

View 3 Replies View Related

AutoCad :: Custom Paper Size Will Not Stay With Printer

Sep 6, 2013

I have AC 2010 LT. I have added a printer which is actually a driver for a laser cutting machine. I have been able to add the cutom media size of the machine. I cannot get that size to stick with the printer name. Every time I choose that printer I have to reset the media to the custom size.

View 4 Replies View Related

AutoCAD LT :: Doesn't Affect Printer's Settings At Driver (custom Paper Size)

Dec 10, 2013

I'm running LT 2014 at Win7 x64 and have a problem with Xerox WF 6604 custom size paper settings.

Simply say when I change custom printer size at the printer's driver settings and confirm all dialogs nothing happend and LT use default settings. No dialog about new or temporary PC3 appear so looks that ACAD doesnt know about change at the printer driver?

This problem isn't continual but, for example, I printed something from the same dwg twice, but when third one change was set the very problem will appear and ACAD doesn't register changes.

View 9 Replies View Related

Lightroom :: How To Set Paper Size Without Printer Installed

Jan 21, 2014

How do you set a paper size in the print module if you do not have a printer installed. I want t use the print module to make custom prints on 8x10 and 11x14 size paper. But I want to print to a JPG to send out to be printed.

View 2 Replies View Related

AutoCAD Inventor :: ILogic - Reposition Revision Table On Sheet Size Change

Sep 24, 2012

a customer has a title block with a revision table ( standard vault revision table)  add on top of it.

If you change the sheet size the revision table remains his position.

If found the way to reposition the table with a ilogic rule.:

'point afstand in cm
PointX=(ActiveSheet.Width/10)-13
PointY=5.5
'punt vanaf rechtonder gemeten in cm

[Code]....

This is working perfectly. But now the challange how to trigger this rule to run if you change the sheet size?

if tried:

trigger=Activesheet.size

or

to create a userparameter and added this line in my rule : Size=ActiveSheet.size, normaly is you change parameters it triggers the rule to rule. but both way didn't work.

Can event triggers from the API be used?  Do i need the "Onchange" event? Any example for a ilogic rule?

View 3 Replies View Related

AutoCAD Inventor :: ILogic - Change Size Of Custom Content Center Part

May 10, 2013

I'm looking for a way to change the size of a custom content center part via ilogic. I found a way to replace them on this forum but this is not ideal for, because that creates a new part every time i change the size of the part.

View 2 Replies View Related

Lightroom :: Changing Printer Properties - Paper Size / Type

May 25, 2012

Why do I need to change the paper type/size in Lightroom everytime I want to print  aphoto, even during the same session
 
I set the paper to say 15 * 18 and borderless and select print. The paper size shown in the top left changes back to A4 by itself. Try setting the options again and they remain as selected. Select another photo and try to print 15 * 18 borderless and the paper size changes again.

View 1 Replies View Related

AutoCad :: How To Change Paper Size

Jun 1, 2011

How do you change your paper size? I'm not given the option in the drop down box:

Page Setup - 0.jpg

View 9 Replies View Related

AutoCAD 2010 :: Cannot Get Paper Size And Orientation To Change

Feb 15, 2012

When trying to change the plotter name to 'Adobe PDF' I cannot get the paper size and orientation to change.

I change to 'Adobe PDF', then change the properties to ARCH D drawing size and landscape, click OK, save changes to printer config and when it returns to Plot-Model window nothing is changed.We just switched over from Windows XP to Windows7.

View 1 Replies View Related

AutoCad :: Insert New Paper Size Or Edit Paper Size In Plotting?

Jul 9, 2012

how i can insert a new paper size or edit a paper size in plotting

View 2 Replies View Related

AutoCAD .NET :: Change Initial View Port Size In Paper Space

Jun 27, 2013

When I first draw something on a model space and click the Layout1 tab to see paper space.

The default view port size (the red box) looks like the following.

But I want to maximize the view port size such that (for example) the dotted line to be the defualt view port size in the paper space.

Could I do this by code??

I am currently using ObjectARX 2007 in C#.

View 4 Replies View Related

AutoCAD .NET :: How To Change Plot Device / Leave Default Paper Size

Apr 3, 2012

Now I'm going to write a code that will change current plot device of the drawing and there isn't a problem here:

acPlSetVdr.SetPlotConfigurationName(acPlSet, newPrinter, "A4");

But how can I leave default paper size not "A4"? For example if there is "A3" it should stay "A3". Because if I go through each drawing I don't know what is the current paper size I just need to change the plot device becuse default has been crashed for example. But if I write "A4" each drawing will have "A4". 

View 1 Replies View Related

CorelDRAW X4 :: Paper Size Change Suddenly?

Oct 23, 2012

Suddenly my paper size for A4 becomes 2100mmx2970mm. It used to be 210mmx297mm.

I don't know how to change it back to normal.

View 10 Replies View Related

Revit :: Change Paper Size For Printing?

Nov 26, 2011

Im trying to print A0 sheets and was just wondering if its possible to change the paper size to 594 x 1682. Pretty much to have 2 A1 sheets in portrait on top of each other. 

View 1 Replies View Related

AutoCAD Inventor :: Change Drawing Scale With ILogic Upon Parameter Change

Jul 8, 2013

I have a spreadsheet and iLogic driven mater assy to generate different iterations.

I would like to change the scale of a base view on a drawing based on a parameter in my assembly. The idea is to get iLogic to change the view using a simple If / Else statement.

This is what I tried:

If Parameter("0 Generic Assembly v2.2.iam.BP") < 1570 Then
ActiveSheet.View("VIEW1").Scale = 1/8
Else
ActiveSheet.View("VIEW1").Scale = 1/10
EndIf

So basically the value of "BP" parameter (excel parameter in my assy) would drive the scale of the views. But its not working. Is it actually a sensible method? Can I use in the drawing environment the excel parameters in my assembly?

This is the error message I get when the rule is run:

"Error in rule: View Scale, in document: 0 Generic Assembly v2.2.idw

Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))" 

Also using the same thinking I use iLogic to populate the drg number field on the drawing based on an excel parameter. The rule works but does not always updates the drawing no upon the parameter change or update/rebuild commands.

View 1 Replies View Related

AutoCAD Inventor :: Paper Size Setting To A1

Jul 15, 2009

Why the paper size won't set to A1.

See attached clip and picture of the printer default setting.

View 9 Replies View Related

AutoCAD Inventor :: Controlling Break Size Using ILogic?

Oct 14, 2011

I have an assembly drawing which requires a break in the drawing view due to its height. The drawing view scales accoring to the change in height (so it remains the same physical height on the drawing), however I need to be able to increase/decrease the height (or value) of the break linearly to the height of the assembly.  

I had a look at the ilogic 'break sample' and tried to adapt it to my needs, however, i couldnt get it working. I am using Inventor 2012.

View 4 Replies View Related

AutoCAD Inventor :: ILogic Size Of Displayed InputListBox

Feb 3, 2012

Looking at using ilogic to display and populate a custom field of available finishes for my products.. I'm using the InputListBox message box and its working BUT I would like to know how to make the actual list box larger (wider to be exact).

sadly running 2014 Product Design Suite Ultimate
Windows 7 64 bit
90G OCZ SATA 3 SSD (My SSD is faster than your HDD)
Core I7 920 processor, ATI HD6970 graphics card, 12G Corsair RAM

View 2 Replies View Related

AutoCAD Inventor :: Use ILogic To Set Size And Length Of A Part

Oct 26, 2011

I have created a ilogic rule that should set the size and the cut length of my parts. Most of the time the rule behave as I want it to. But sometime it gives me a error. See attached picture. By the way, I have included this rule in my custom content center parts (beam's etc). The rule is:

'Turn off workfeatures
ThisDoc.Document.ObjectVisibility.AllWorkFeatures = False

'check if the part has any geometry
If Measure.ExtentsLength="0" Then
[code]........

View 9 Replies View Related

AutoCAD Inventor :: Custom Sheet Size Using ILogic

Jan 15, 2013

I made a form that allows the user to enter in a custom sheet size.  Using the API I am changing the Drawing Sheet Size Enumerator to the Custom Sheet size which allows the user to enter in custom values.  That part is all working fine.  My problem is that when a custom size is used in my title block it says that the size is "Custom Size (mm)".  I know that the API uses cm for the sheet size units so I have the code convert the values into cm. 

In the sheet settings window built into inventor it has the option for Custom Size (inches) and Custom Size (mm).  How do I change whether it is inches or mm?

View 5 Replies View Related

AutoCAD Inventor :: ILogic And ITrigger To Prompt Size And Material Changes?

Oct 23, 2013

I am interested in Learning about Ilogic and the Itrigger. I worked at a company where they had a prompt that would change, size, material, hole quantities etc. I am trying to recreate that for a cabinet but cannot seem to find a good tutorial, I know I need to write some sort of rule to do this but cannot find out specifcally how to do so.

View 2 Replies View Related

AutoCAD Inventor :: ILogic - Automatic Print With Right Sheet Size

Nov 6, 2012

Dont have a before print Event Triggers . I want to make a rule with automatic print with a right sheet size, but in all my try don't work

that is my last one

'Dim oDraw As Document
oDraw = ThisApplication.ActiveDocument
oDrawDoc = ThisApplication.ActiveDocument
oDrgPrintMgr = oDrawDoc.PrintManager
[code]........

View 9 Replies View Related

AutoCAD Inventor :: Control Break Size In Drawing View Using ILogic?

Feb 24, 2011

is there any way using iLogic or other method to automatically control the size of the 'break' in a drawing view? I have built a model which uses iLogic to control virtually everything, however the large variations in the length of the product mean that there are some interesting results when it comes to the broken drawing views updating.

it would be nice to locate the break at the absolute center of the view and then size it as a percentage of the view size along one axis or perhaps according to some other length based rule.

Dell Precision M6400 - C2D 2.66 / 8gb / Quadro FX3700M / Win 7 Pro x64

View 9 Replies View Related

AutoCAD Inventor :: Using ILogic To Change Parameter

Mar 26, 2013

When I import a part from content center, a tube in this case, I get a length parameter called <PL>.

I am using this parameter in the parts lists, so it shows "=Outer diameter x thickness x <PL>"

However I don't want trailing zeros, leading zeros or units string to be shown.

I know I can open the parameters window, right click the parameter, then click custom property format and then uncheck these boxes and its fine.

But I want to know if there is a smarter way to do this, like creating a rule to execute on all the parts?

I have around 500 pipes with the parameter <PL> that needs to be changed.

View 6 Replies View Related

AutoCAD Inventor :: ILogic To Change Sheet Name

Oct 31, 2013

I've seen snipppets of code to get the Sheet name but is there a way to set it via code? I'm thinking it might be useful to set the sheet names to the chosen sheet format (as opposed to just 'Sheet').

I'm sprucing up my drawing template...

Rule #1 is for selecting sheet format (which title block/sheet size / orientation)
Rule #2 is for setting iproperty values to populate the titleblock with info. (if required)
Rule #1 was based on code from S.Bixler & inventortrenches
Rule#2 was based on more code taken from here.

View 2 Replies View Related

AutoCAD Inventor :: Change Row Of IAssembly Using ILogic

Nov 11, 2013

Issue between an i-assembly and i-Logic. So, I have an assembly that includes some extra components that are not always needed and therefore an i-Logic rule takes the decision whether these will be suppressed or not.

Of course this is not a problem however it turns out that I miss some info from BOM according to the suppressed parts   ...and all these makes sense following the LOD etc.

A potential solution to keep up to date the BOM while you are excluding the needless components is to create 
an i-Assembly.

To keep that simple I turned my current Assembly to an i-Assembly and very successfully I excluded various components and of course I included some others by adding extra ROWS. 

So far So good

Now I want to apply some dimensional boundaries by using i-Logic rules. According to them I want to allow this i-assembly to jump among these different ROWS that meet the right criteria.

Very rough thoughts led me to the following code...

For example...

If Width > 600 Then
iPart.ChangeROW ("..." , "...") 'Row-1'
Else
iPart.ChangeROW ("..." , "...") 'Row-2'
End if

The Problem is that the above code works fine, for a example, in case that I will place an i-part in my assembly... However I am looking to change the row of the actual assembly that as I mentioned before I turned it to an i-assembly

To make this even more clear I want to be able to manipulate my i-assembly with i-Logic rules while this is open in Inv. I don't want to change rows while this is placed as a component or sub-assembly in an another assembly...

View 1 Replies View Related

AutoCAD Inventor :: Change BOM Structure With ILogic?

Jan 8, 2014

I'm using rules to control a part that I made. This part is available in steel and wood. 

But steel = normal and wood is something we have to buy.

I would like to adjust my rule so that my material choice will effect the "Default BOM Structure"

I just can't find the right "code" to start with.

View 8 Replies View Related

AutoCAD Inventor :: Color Change With ILogic?

Jun 27, 2012

I am using Inventor 2012:  I have a table with different part numbers. I want to create an iLogic rule to change the color of second solid body in my part for a specific part number.

This is what I did.

If iProperties.Value("Project", "Part Number") = "F22111796" Then
 Feature.Color("plastic")= "Gray"
ElseIf iProperties.Value("Project", "Part Number") = "F22111796V" Then
 Feature.Color("plastic")= "Gray (Dark)"
ElseIf iProperties.Value("Project", "Part Number") = "F22111796N" Then
 Feature.Color("plastic")= "Gray (Light)"
Else
 Feature.Color("plastic")="Gray"
End If

However it does not change the color of the second solid body when I make the part number active.

View 1 Replies View Related

AutoCAD Inventor :: Using ILogic To Change An IPart Row?

Oct 25, 2012

I have a sheet metal part that I converted into an iPart and I set up different rows with different sheet metal styles. What I want to do is run an iLogic code to change to a specific row which in turn would change the actual material of that sheet metal part....I've tried the snippet iPart.ChangeRow but cannot get it to run the code. I'm not sure if I'm not doing something right or what...

Inventor 2014, Windows 7, 64 bit

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved