AutoCAD Inventor :: Border's Rangebox With Apprentice?
Feb 19, 2013Border's Rangebox with Apprentice?
View 1 RepliesBorder's Rangebox with Apprentice?
View 1 RepliesI'm getting the rangebox of my assembly, but am having problems getting exactly what I need. Basically, if a part in my assembly is rotated, it's like it's getting the rangebox of the part's rangebox in its new orientation. I have included pictures to show what I am getting and what I would hope to get. In the last screenshot, I have drawn a red box to show what I would like to achieve. The black box being drawn from the rangebox was created from some code I downloaded (I think from this forum, but I couldn't find it via search, here is another link
[URL]....
Is there anyway to do what I am needing to do?
I have some C# code that uses Apprentice to print some idw files. I am having issues that some sheets get printed with a big black splotch on them. I have attached a screenshot of one of these files. If I open it in Inventor View 2014 and print it from there, it prints fine.
View 2 Replies View RelatedI've a program which saves a inventor drawing to DWF. See code below. Here for I must use inventor 11 to open the file and then save it to DWF.
Is there a way to do the same with apprentice?
Public Sub Make_DWF(strFilenaam As String)
'open document invisible
Set oINVDoc = oINVApp.Documents.Open(strFilenaam, False)
'make DWF
Dim addins As ApplicationAddIns
[code]..........
Is there a list of possible options for Apprentice with the Open with Options method?
Even if the Apprentice.open call is inside of a Try Catch, it doesn't throw an error when a file is missing references it just goes back to the routine that called it.
Dim oDocOpenOptions As NameValueMapoDocOpenOptions = oApprenticeApp.TransientObjects.CreateNameValueMapCall oDocOpenOptions.Add("SkipAllUnresolvedFiles", True)
The documentation says it available in Apprentice but the error message is "Not implemented".
View 3 Replies View RelatedI have changing the parameters of an inventor document using the inventor API by create an instance e of inventor and open the document,but it take more time .is it possible to use Apprentice Server to change the parameters of the document.?
My code is
Dim oPartDoc As PartDocument = inventorApp.ActiveDocument Dim oParameters As Parameters oParameters = oPartDoc.ComponentDefinition.Parameters() Dim oLengthParam, oWidthParam, oHeightParam As Parameter oLengthParam = oParameters.Item("d0") oWidthParam = oParameters.Item("d1") oHeightParam = oParameters.Item("d2") oLengthParam.Expression = TextBox1.Text oWidthParam.Expression = TextBox2.Text oHeightParam.Expression = TextBox3.Text oPartDoc.Update()
how can achieve the same method using ApprenticeServer?
I'm trying to create a routine that enables the user to change the iProperties on an assembly through Apprentice. I had a sample file that was working last week but when I ran it again I suddenly have a runtime error -2147467259 (80004005). Here is the sample below:
Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
Private Type OPENFILENAME
lStructSize As Long
hwndOwner As Long
[code]....
I search a way in a Csharp program to read iproperties without open file in appentrice because it's time consumption. When we right-click on the file in the windows explorer, the iproperties come instantly.
View 1 Replies View RelatedI'm using Apprentice Server to change the display name of components.
My
objInvDoc = objapprenticeServerApp.Open(strFileName)objInvDoc.DisplayName = strDisplayName
Something odd happens: I have two parts, last saved with exactly the same Inventor-Build (2011 SP1 (Build 150282100, 282)). After changing the display name of these two parts, the debugger shows the correct value for the DisplayName-Attribute. But when I open the files, Inventor displays the correct value for one file, but not for the other. In the corrupted file, the old value is displayed.
I'm trying to Copy an Assembly via the Apprentice Server functionality.
But I don't want to copy all files with the filesave as feature. Some of the files, has to be used again as the source file. For Example Content Center files should not be copied. Or maybe also some specific defined internal standard files.
Is there a possibility to get this work?
In the moment, I got all these files via:
[...] For each Element As Inventor.ApprenticeServerDocument In doc.AllReferencedDocuments [...]
maybe it's possible to say something like that:
If Element=ContentCenterDocument then BlaBlaBla
I know, there's an "Inventor.ObjectTypeEnum.kContentCenterObject", but I don't know, how to use it, to check the ApprenticeServerDocument with that.-
I´m trying to access ComponentDefinition.ReferenceComponents.DerivedPartComponents using Apprentice Server but it tells me "Not implemented". Is there any other way to figure out whether a component is derived or not?
View 1 Replies View RelatedI 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] .......
Per the attached exhibit, how to get the plot border to cover the entire sheet border instead of just the bottom left corner.
View 1 Replies View RelatedI have been having trouble storing attributes on border definitions. I have multiple borders which need to be used for different types of drawings. I have developed a tool which will use the desired border pragmatically and it works as planned. Currently the logic selects a border based on name, but since this can be edited by the user I need a more dependable way of retrieving a border. I had thought attributes would be the answer, but I'm running into problems. The attributes just won't stick. I've tried to add them manually through the API and with the Attributes Helper tool released.
See below for the code I'm using to add the attributes
Dim oAttr As Inventor.Attribute Dim oAttrSet As AttributeSet Set oAttrSet = oBorderDef.AttributeSets.Add("TestAttributeSet", True) oAttrSet.Copy = True Set oAttr = oAttrSet.Add("TestAttribute", kIntegerType, 12345) Debug.Print oAttrSet.Parent.Parent.Name & " " & oAttrSet.Name & " " & oAttr.Name & " " & oAttr.Value
It will print information leading me to believe that the attribute was added, but if I try to retrieve it either through the attributemanager or manually cycling through the border definitions no attributes exist.
I have the default border set in all my templates but I want to add an outside border to the default border (so everything is ultimately enclosed in a large box). How can I add that to the default? I see where I can define a new border but I can't have two borders on the same drawing so how do I combine them? I want to keep the existing "smart" default border that lets me choose how many zones etc.
View 9 Replies View RelatedI have been creating a drawing of a Assembly and realized that I had drawn it on a Company "D" size border by mistake. How do I change it to a "B" size border without starting over?
View 5 Replies View RelatedI would like to create a border that looks at the sheet number and then zones the horizontal borders in a continuous numbering scheme.
Sheet 1 = 1-8
Sheet 2= 9-16
etc...
This is a requirement that we have to meet with some customers. When drawings get to 30+sheets it becomes a pain to manually renumber the zones.
I would imagine this is done in VB code, but I have not programmed in a very long time. The formula would be something simple like;
if sheetnumber >1 then
for i =1 to 8
zone(i)i.value = zone(i).value +8
next i
end if
I'm having a problem with a Zone Border. I created the Zone Border like normal. I edited the appearance of the 'ABCD1234' text slightly:
- changed to center and middle justification.
- changed width to 120%
- changed color to black
The edits to 'ABCD' took effect and look just right. The edits to '1234' don't stay edited. I save the sketch, it looks okay, then when I add it to Sheet:1, the numbers have gone back to blue and lost the width and justification edits. But the letters are fine. What the heck is going on?
I use two different measuring system IMPERIAL and METRIC.
What I want is to be able tell at a glance, by having different color border and Title-block Text is which one of the system of units I'm using
So what I'm wanting to do is create a Metric Sheet template with on color, Border, Title Block Text and a different color for the Imperial.
I've tried changing the color using the Style Center but that affects both templates, I've tried editing the title-block text saving the template but on opening it has changed back to the defaults set in the style settings and dose not hold those that I set.
What I don't what to be doing is changing them after opening, as at some stage I'll forget.
I wanna to reduce the text size in border or guide me to create own border creation. Explain through photos or give me a step by step procedure so that i can understand easily because i am new to inventor.
View 1 Replies View RelatedI am creating a standalone .exe with VB.net that opens an Inventor .idw and creates a few custom tables. I want one of the tables to have no border at all.
So far I have tried:
Dim oFormat As TableFormat oFormat = oInvSheet.CustomTables.CreateTableFormat oFormat.InsideLineWeight = 0 oFormat.OutsideLineWeight = 0 oCustomTable_Hardware.OverrideFormat = oFormat
But that does not hide the border lines.
I've found no similar code to try out that dealt with table borders or that sort.
Is there a way to access any data of any Border in a Drawing files when creating a sketch in the file?
I'm trying to make a Title Block that take up the whole length of the Border bounded page and 10 mm high, anchored on the bottom.
Currently I had the Default Border "changed" by Inserting it and changing the margins to fit to approximately my printer's printable area. It seems at this stage when I created a new title block defn I'm basically given a blank sketch with the origin at the bottom left as my only "snap point".
I found one through subject suggestion about using iLogic to change the size, but that isn't exactly what I'm trying to do as that seems just a switch for different Title Blocks that's been made up.
I thought about just drawing the title block in with the border, but I don't think that's the right way to do it.
Is there any way to draw your Title block in this case beside manually figuring out how big the Border is and dimension with that raw number?
(Just curious as it would be just a simple subtraction, but if I changed the Border margin I would have to repeat the arithmetic...)
I'm currently using Inventor 2013. but I've seen this in earlier versions of Inventor.
After creating a view within a drawing sheet, if you RMB on the view label, an option for Constrain to View Border appears.
What does this option do and how is it used? I don't see anything happening when I use this option.
How do I get the zone borders to number horizontally.
Sheet1 1-8
Sheet2 9-16
Sheet3 17-24
I need some VBA code that will allow me to get the Filename from the border of a drawing. I've got code to get to the text of the filename, but I need to get the filename itself. Hope that males sense. Here's the
Public Sub GetModelFilename()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
[Code]...
What the code returns is the text <FILENAME>. What I need is the filename itself.
When i create a drafting i use ISO.idw template. I delete the default title block and the default border and then i create my personal title block and border. How to save the new title block and the new border somewhere in "Inventor's memory" and use them in other draftings?
View 1 Replies View RelatedThe company I work for produce drawings for various types of fabrication.
Using Inventor I have a drawing border in which tolerance values change depending on the type of fabrication to be produced. The type of fabrication (0,1,2,or 3) is designated by a custom property entered during part/fab model creation.
This property may change depending on various production factors. The issue I have is how do I get the border to recognize this potential change in fab type and populate the tolerance fields with the necessary information?
have default text for a Prompted Entry in a Border. I have not found a way to do this other than creating a custom iProperty, which is not an option, since it is not our title block / border.
View 9 Replies View RelatedIs there an option to set the default colour for object borders? Our drawing templates have a black background. If I want to move a text or a view, all that is shown while moving the text or view is a rectangular border. Unfortunately this is also black and thus invisible. So you never really know where you move your object to.
View 4 Replies View RelatedIs there a way to change the default margin offsets (i.e. the distance between the edge of your border or title block to the edge of your paper), without using the "Insert Drawing Border" option?
I would have thought you could do this through the "Edit Sheet" or "Define New Title Block / Border" options. I have multiple customized title blocks, which each require their own margin offsets.