AutoCAD Inventor :: Changing Display Name Of Components Using Apprentice Server
Jan 10, 2014
I'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.
View 2 Replies
ADVERTISEMENT
Aug 17, 2013
I 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?
View 2 Replies
View Related
Jul 24, 2013
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.-
View 2 Replies
View Related
Jun 24, 2013
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 Related
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
Nov 14, 2011
I am creating drawing template and I try do edit BOM style. By default my precision is .000.
I want to change it. How do I do it?
View 6 Replies
View Related
Jan 13, 2014
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 Related
Jan 30, 2007
I'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]..........
View 5 Replies
View Related
Feb 19, 2013
Border's Rangebox with Apprentice?
View 1 Replies
View Related
Mar 9, 2013
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)
View 1 Replies
View Related
Feb 25, 2013
I want to change the color of a material definition in 2d wireframe (plan view). For example, for walls, when the mat. def. is checked in the wall display props, the hatching shows orange->color 30.
When I look at one of the materials listed for said wall, in style manager, for that display component, there are diplay components similar to an object format, but in the mat. def. the components control the color (see attached example).
Now is there a "master setting" to change them - I want to change say the plan linework or section hatch to a different color to match our layer color standards or do I have to go into every since display rep. for every single mat. definition and change them or is there a way I can do it once & all will change?
The out of the box objects are great but what I am worried about is that those colors that are given don't work well with our office standard, esp. if we go back to old projects.
View 2 Replies
View Related
Apr 13, 2012
The documentation says it available in Apprentice but the error message is "Not implemented".
View 3 Replies
View Related
Jan 29, 2013
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]....
View 5 Replies
View Related
Dec 22, 2011
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 Related
Mar 12, 2012
I copy a .dwg to my remote computer and open it. Then .dwl and .dwl2 are created in same local folder as the .dwg I just opened localy. Then I copy the local .dwl and .dwl2 files back to the remote server in the same location I received the origional .dwg from. Why are those files not locked now from everybody on the network that I am remotly away from?
View 7 Replies
View Related
Jan 2, 2013
I am trying to rename all the xref's on the drawing with suffix "_renamed" With the code shown below , I am able to do this. But the problem I am facing is once the code renamed and reloaded the xref, the Xref-dependent layer properties are changing to Xref source layer properties.
Also the VISRETAIN variable is 1. Please find the code below.
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.Geometry
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.EditorInput
[code]......
View 4 Replies
View Related
Jan 15, 2012
I'm trying to provide the user with some alternative vies of the drawing from within my application.
I picked up this code from an earlier post and have modified it to what I thought should work, but is has no effect on my screen display even after I exit from the form.
Private Sub ComboBoxView_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBoxView.SelectedIndexChanged Dim myDwg As Document = Application.DocumentManager.MdiActiveDocument Dim myDB As DatabaseServices.Database = myDwg.Database Dim myTransMan As DatabaseServices.TransactionManager = myDwg.TransactionManager Try myTransMan.QueueForGraphicsFlush() ' Have tried with and without this line Using myTrans As Transaction = myTransMan.StartTransaction Dim vpr As ViewportTableRecord = DirectCast(myTrans.GetObject(myDB.CurrentViewportTableRecordId, OpenMode.ForWrite), ViewportTableRecord) If vpr IsNot Nothing Then Select Case Me.ComboBoxView.Text Case "Plan" vpr.SetViewDirection(OrthographicView.TopView) Case "Front elevation" vpr.SetViewDirection(OrthographicView.FrontView) Case "Side elevation" vpr.SetViewDirection(OrthographicView.LeftView) Case "SW isometric" vpr.ViewDirection = New Vector3d(1, -1, -1) Case "NW isometric" vpr.ViewDirection = New Vector3d(-1, 1, 1) Case "SE isometric" vpr.ViewDirection = New Vector3d(1, -1, 1) Case "NE isometric" vpr.ViewDirection = New Vector3d(1, 1, -1) End Select End If myDwg.Editor.UpdateScreen() ' Have tried with this line inside and outside the 'Using' section myTransMan.QueueForGraphicsFlush() ' Have tried with and without this line myTrans.Commit() End Using Catch ex As SystemException MsgBox(ex.Message) End Try End Sub
I note that I have probably misguessed the direction vectors, but I can handle that by experiment once I get the screen updating.
View 2 Replies
View Related
Oct 22, 2012
I would like to find out how to fix two components in an assembly relative to each other, and using VBA.
What I want to do is to build the assembly (which consists of two components A and B, and also other components) and then animate the joint in component B. In order to do so, I have to fix A to B so that A moves along with the joint motion. But my problem here is that the attachment of A to B is not definite - it depends on other components in the assembly, so I cannot predefine a constrain between the two.
Is there a way I can easily fix two components relative to each other in an assembly without prior knowledge on how they are positioned relative to each other?
I'm thinking of measuring and then constraining the origins of the two part files in 6DOF, but I'm not sure how i can extract the angle between the axes and then constrain them in the correct way (mating using angles has always been confusing for me).
View 2 Replies
View Related
Apr 10, 2012
we are using level of details to suppress few components. when we are trying to take BOM for that level of details. we are getting the suppressed components also. is there any control we can do avoiding that suppressed component. I know if you make the BOM sequesnce to reference that wont come in BOM. but we need that file for other LOD.
View 9 Replies
View Related
Oct 21, 2011
I use hinges in my door assemblies and they are basically placed into the assembly each time and become flexible so the doors can operate. The hinges are one size and don't change in any way or shape. What is the best practice for inserting these hinges into my door assemblies?
Inventor 2013
Windows 7 Professional 64-bit SP1
HP EliteBook 8470w
Processor: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz
Memory: 16 GB
AMD FirePro M2000
3D Connexion SpacePilot
View 2 Replies
View Related
Sep 30, 2013
Our IT system is not capable of downloading my media from the ADSK Website without timing out. Seems that our internet connection actually comes from and/or is filtered through New York while I am in Virginia.
So I have requested and received a set of media from ADSK for all my products. I am in then process of copying each to a server location to install from. In doing that you must ignore the autorun.inf file but I have also ignore the MID.txt and setup.ini files. The reason being that each of them specifies that the media is USB within them, see attached.
Does these files are necessary to install from the server location and if they are is there a form that these statements needs to be changed to?
Downloaded 2014 product could you look to see if these files exist and what these statements are in them.
View 3 Replies
View Related
Apr 9, 2013
I made a simple aluminum frame with clear polycarbonate shields. Somehow, when I put it on drawing sheet, some parts behind the polycarbonate are missing. If i make the polycarbonate invisible, the missing parts appear again. This strange phenomenon started today. It didn't happen before, and no parts were missing behind the clear polycarbonate.
View 6 Replies
View Related
May 10, 2012
How to manage the visibility of components in a particular view?
In attach file,View 2 is a detail view of view 1. On view 2, I want to display only the nozzle (Drain (H):1) and shell (C1306388341:1) component. So I need to set the visibility of the other component to false.When I try to code this, the components of model file of view 1 was updated not the view.
Set ViewDocument = oDetailView.ReferencedDocumentDescriptor.ReferencedDocument
For Each ViewOccurence In ViewDocument.ComponentDefinition.Occurrences
If nozzleName <> ViewOccurence.ReferencedDocumentDescriptor.DisplayName Then
ViewOccurence.Visible = False
End If
Next
The reference document I set for my code is not the document which contains the view 2. So I need to the actual reference document where view 2 belongs which is in the box of view 2 that contains 5 components.
View 2 Replies
View Related
Nov 28, 2013
In ipn file, after I created sequence and wanted to add in some more components. When I edit the sequence, I cannot find the place to add the components.
View 2 Replies
View Related
Jan 23, 2013
I have one computer that can't connect to the Vault Server. It use to work fine and I am not sure what happened. I have gone to the extreme of uninstalling and re-installing and still nothing. I am in the same project as when it was working. I have checked the Application Options Content Center and made sure that the Access Options is set to Autodesk Vault Server.
When I click on Vault Server, everything is grayed out except "Log In" and "Connection Options". If I click on either of them the dialog box goes away and nothing happens. No error dialogs nothing. If I go to the project amd click on the Configure Content Center Libraries button it just disappears and nothing happens. Not sure what else to do.
View 1 Replies
View Related
Apr 24, 2013
I would like to know if there is any possibility to replace a component with another one, that has a different internal name. Losing the dependencies would be acceptable.
ReplaceReference and PutLogicalFileNameUsingFull always return the error "wrong parameter".
View 5 Replies
View Related
Aug 2, 2013
How do I specify which template my imported components use?
View 7 Replies
View Related
Oct 28, 2011
I'm attempting to run an FEA of a preliminary design to isolate the best locations for weight reduction. When I attempt to do the analysis with convergence criteria of
Maximum number of h refinements: 2Stop criteria: 8%h Refinement Threshold: 0.5
I get the following issue:
Mesh failed: Face failure: Spar:1Model separates into 36 independent componentsSoft spring was added Is there anything I can do either model or simulation wise that will keep the model from separating?
View 9 Replies
View Related
Jul 5, 2012
Why can I not constrain placed objects with three constraints? Anything I place constrains with one constraint then is virtually fixed (without being) and cannot even be moved to allow for further constraining.
View 9 Replies
View Related
Feb 22, 2012
Look at the vifdeo file attached. I have not problem to create one component fade out (from 100% to 0%). But how to show the another component fade in (from 0% to 100%)? Studio does not allow fade from 0% to 100%.
View 4 Replies
View Related
Jan 11, 2012
I was using "copy components" inside an .iam without any problem. Suddently, when I tried to copy more instances, inventor was blocked and I was not able to copy anymore components. Then I had to close inventor because it seems to be in a bucle.
View 4 Replies
View Related