iLogic determines which Sheet Format to use based on base view file type

iLogic determines which Sheet Format to use based on base view file type

BK-MTFNE
Advocate Advocate
248 Views
1 Reply
Message 1 of 2

iLogic determines which Sheet Format to use based on base view file type

BK-MTFNE
Advocate
Advocate

So I am currently upgrading our company inventor workflow and one of the items I have changed is adding multiple Sheet Formats with different sheet sizes and title blocks. The reason for this is we have different title blocks for assemblies and parts. Eventually I will try to have one title block that changes for different file types but I am not there yet. What I am currently trying to do is when a new idw is created I want the sheet format determined by the file type selected for the base view. Example would be if a .ipt is placed in the base view the Sheet Format would be the one set up for parts and if an .iam is placed in the base view then the Sheet Format set up for assemblies would be used. I currently only use 2 of the sheet formats as the others are still going through upper managment review.

 

P.S. We set up our drawings using sheet sets so I will eventually set up code that adds the top level assembly and then determines how many additional sheets will be required and create the base views of each sub-assembly and part associated with the top level assembly. this is why i would like the sheet format linked to the base view for each sheet.

0 Likes
249 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

Hi @BK-MTFNE.  I think that maybe the order of events would have to change to make that happen.  You need a drawing, and a sheet, before you can place a base view on that sheet, and I do not think that you can change the sheet format of the sheet after you have already created it and placed a view on it.  I believe you will need to start with the model document reference first.  Then determine whether it is a part, or assembly.  Then get a reference to the corresponding sheet format object.  Then use that sheet format object to create a new sheet, and specify that model document as what to fill in any views with.  You can have views already in the sheet format, and if so, that model will fill in those views for you automatically.  If you did not include any views in your sheet format, then you will have to place the first view either manually, or by code.

Here are a few related Inventor API online help Links:

Sheets 

Sheet 

SheetFormats 

SheetFormat 

Sheets.AddUsingSheetFormat 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes