Titlebox changes size, goes beyond border

Titlebox changes size, goes beyond border

sanganaksakha
Advocate Advocate
536 Views
2 Replies
Message 1 of 3

Titlebox changes size, goes beyond border

sanganaksakha
Advocate
Advocate

I am facing a strange problem, and I suspect it could be a bug.

 

I am creating a new drawing using VB.Net using the following code I found on the forum: 

 

oDrawing = curIvApp.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject, _
curIvApp.GetTemplateFile(DocumentTypeEnum.kDrawingDocumentObject), False)

......

oFrontView = oSheet.DrawingViews.AddBaseView(oDocToDraw, insPtFrontView, viewScale,
ViewOrientationTypeEnum.kFrontViewOrientation,
DrawingViewStyleEnum.kHiddenLineDrawingViewStyle)

 

It works and creates the drawing. The code also adds the DWG NO in the drawing which is the same as the name of the linked model document.

But the titlebox size changes and it goes beyond the border on the left side. (See image.)

 

When I do it interactively, everything is fine.

 

On observation I found that the font size of the Part No. is larger than the font size when done manually?

1. Why does the font size change?

2. But more serious issue is why the titlebox changes the size. It should never happen. Is this a bug. I am using A4 size sheet, portrait. Inventor 2014.

 

I am really stumped.

 

0 Likes
537 Views
2 Replies
Replies (2)
Message 2 of 3

bradeneuropeArthur
Mentor
Mentor

Hi,

Test if the sketch of the title block is fully contraint!

You could also completely ground the sketch of the title block manually.

But do it in the template file!!!!!!!!

This should solve the problem from moving outside the border.

 

Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Dimension Component! | Partlist Export! | Derive I-properties! | Vault Prompts Via API! | Vault Handbook/Manual!
Drawing Toggle Sheets! | Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 3

sanganaksakha
Advocate
Advocate

1. I am using the default ISO template. So is it flawed? I don't think so.

2. Why the font size of the PART NO is larger than when I do it interactively, is still not clear.

0 Likes