AutoCAD Inventor :: Code To Create Virtual Part?

Aug 16, 2013

code example of how in .iam create a virtual part and save it separately in specific folder?

View 3 Replies


ADVERTISEMENT

AutoCAD Inventor :: How To Create Folder In Assembly Tree And Save Virtual Part There

Sep 25, 2013

I`m working on the code that reads a list of virtual parts from Excel and adds required qty into the assembly. So far it looks good, I  just need to know how to create a folder in a Assembly view tree and save virtual part in that folder instead of placing it in the root.
 
Dim occs As ComponentOccurrences
occs = asmDoc.ComponentDefinition.Occurrences
Dim identity As Matrixidentity = ThisApplication.TransientGeometry.CreateMatrixDim virtOcc As ComponentOccurrencevirtOcc = occs.AddVirtual(sVirtPart, identity)

View 5 Replies View Related

AutoCAD Inventor :: How To Change IProperties For Virtual Part

Sep 26, 2013

How to add a virtual part from an excel list to assembly using vb.net plugin. I`d like to know how to change i Properties of the virtual part through vb.net.

The iLogic code that I would typically use is:
 
Dim occs As ComponentOccurrencesoccs = asmDoc.ComponentDefinition.OccurrencesDim identity As Matrixidentity = ThisApplication.TransientGeometry.CreateMatrix
Dim virtOcc As ComponentOccurrenceIf v_qty >= 1 ThenvirtOcc = occs.AddVirtual(sVirtPart, identity) Try iProperties.Value(sVirtPart & ":1", "Project", "Description") = oProp1iProperties.Value(sVirtPart & ":1", "Summary", "Title") = oProp1 Catch End Try.......
 
so for the plugin I need to re-write this
 
Dim _invApp As Inventor.ApplicationDim occs As ComponentOccurrencesoccs = asmDoc.ComponentDefinition.Occurrences
Dim identity As Matrixidentity = _invApp.TransientGeometry.CreateMatrix Dim virtOcc As ComponentOccurrence If vp_qty >= 1 Then virtOcc = occs.AddVirtual(sVirtPart, identity) 'Try ' iProperties.Value(sVirtPart & ":1", "Project", "Description") = oProp1 ' iProperties.Value(sVirtPart & ":1", "Summary", "Title") = oProp1 'Catch 'catch error when oProp1 = nothing 'End Try

 How should I re-write the text in bold , so it works?

View 4 Replies View Related

AutoCAD Inventor :: Programmatically Create Virtual Component?

Mar 18, 2013

I am trying to use iLogic to programatically create virtual components in an assembly. These components will by used as iProperty "buckets" to hold Machine Center specific information to be exported to production planning software. This information is hierarchical in nature and cannot be (conveniently) stored in the assembly iproperties directly.

View 3 Replies View Related

AutoCAD Inventor :: Save A Part With ANSYS Code?

Dec 3, 2011

I have build a solid in inventor. I want to optimize the model in ANSYS, so I need the ANSYS code of the geometry.  If I import a file into ANSYS (i´m importing .SAT and  x_t parasolid) the geometry code does not show.

how can I save a part in inventor with ANSYS code, or any way to convert any CAD format to ANSYS code?

View 1 Replies View Related

AutoCAD Inventor :: VBA Code To Get Coordinates Of Each Part Of Assembly

May 9, 2012

I try to develop a vba code to get the coordonates of each part of an assembly and after export them to an excel file.

I build this : 

Public Sub Export_Layout_COG()

If MsgBox("Cette Macro va exporter les coordonnées du COG de chaque layout, continuer ?", vbYesNo) = vbYes Then
Dim RefDoc As Document
Set RefDoc = ThisApplication.ActiveDocument
Refdocdisplayname = RefDoc.DisplayName

[Code]...

The code return an error on the red line, I don't catch why?

View 3 Replies View Related

AutoCAD Inventor :: ILogic Code To Check File Name Matches Part Present In Drawing

Feb 15, 2013

At my company we use part numbers as file names for everything. for example, part number 09090P00100000, will be saved as 09090P00100000.ipt and will have a drawing saved as 09090P00100000.idw.

Within the drawing template file, i want to set up an ilogic rule that will check that the part present in the drawing corresponds to the file name of the drawing. This rule will run after saving and will just display a warning if the file names do not correspond.

I just need some code that will get the file name of the part displayed in the drawing.  Note that we use iparts so the code must get the member file name and not the factory file name.

Dim oDrawingDoc As DrawingDocument
oDrawingDoc = ThisApplication.ActiveDocument  
Dim oSheet As Sheet   
oSheet = oDrawingDoc.ActiveSheet

[Code] ........

Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit

View 8 Replies View Related

AutoCAD Inventor :: Create IProperty That Becomes Part Of Every Part?

Apr 10, 2012

i.e.,  is it possible to create a custom iproperty which would enable the user to attach a particular attribute to every component within an assembly without manually going through each component.

For example,  If I have a pipework sub-assembly within a manifold assembly.  I want to create a custom iProperty for 'Component Type' which would be called 'Pipework' for every component called up within that subassembly.

Likewise for a frame could you have the above custom property attached to every component but called up as 'framework' instead etc.

View 2 Replies View Related

AutoCAD Inventor :: How To Create Flat Pattern From VBA Code

Dec 29, 2011

I need a code to generate the Flat Pattern in VBA.

I made an app who sets the specific material and I would like to unfold the folded part at the same time.

I tried this code, but not works:

  Dim partDoc As PartDocument
  Dim sheetMetalDef As SheetMetalComponentDefinition
  If (Not sheetMetalDef.HasFlatPattern()) Then
   sheetMetalDef.Unfold
  End If

Windows 7 Professional 64Bits
Inventor 2011 Pro

View 4 Replies View Related

AutoCAD Inventor :: Create A Temple For ILogic Code?

Feb 2, 2012

I am trying to use a code window plugin on my website, and would like to create a temple for iLogic code.  Is there any way to output  iLogic code in a format that would work?

I cannot modify any of the existing templates because iLogic requires information as to whether to make some text brown or blue, and it would need some form of output to do that.

[URL]

The instruction page is here: [URL]

I have been manually highlighting or using images, but both have their problems. (cut & paste will lead to a pile of errors with the manual highlighting). I can create the css file, but need some form of output beyond cut & paste to work with.

If something is worked out, it will be added to the program and be available to everyone free (this is a Wordpress plugin).

[URL]

Self built computer with;

Quad core processor
16 gigs ram
Raptor Raid main drives
2 x 1TB Caviar Black storage drives local
2 x 1TB Caviar Black storage drives network backup

Main Software;
Product Design Suite Premium
Windows 7 Home Premium
[URL]

View 1 Replies View Related

AutoCAD Inventor :: Create Automatically Code For Saving Documents?

Sep 2, 2013

I need assign automatically, a unipersonal code at file, before saving it. When i do save as or save at the first time,  inventor take automatically the name listed over the tree of operations at the left of screen, My problem is, that i can't identify this paramter or property, for assign this code in ilogic.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Code To Create User Parameter?

Jul 29, 2011

I want to use iLogic to create User Parameters with Multi-Value lists filled with info from an excel spreadsheet. What is the code to create a new User Parameter?

i7-2720QM Dell Precision M6600, Win 7 Pro 64-bit, 8GB RAM
Autodesk Product Design Suite Ultimate 2013
Autodesk Vault Professional 2013

View 4 Replies View Related

AutoCAD Inventor :: ILogic Code Part Iproperties To Custom Iproperties

Sep 19, 2013

I was looking for some iLogic Code for Inventor 2013 that would cycle through all the parts in an assembly grabbing the quantity of each part and setting it equal to the custom property "Qty" of each part.

Having a little trouble creating the for each loop and setting reference to each part without referencing each part by specific name.

View 6 Replies View Related

AutoCAD Inventor :: Using Assembly To Create A Part

Nov 3, 2013

I'm trying to design a linear bearing that is composed of a billet of material to which six ball bearings are bolted. I was able to create a part representing the ball bearing from the manufacturer's dimensions. I then modeled a lock washer as a part, then an assembly consisting of a ball bearing and a lock washer. I then created an assembly from that assembly, with six of these ball bearing/lock washer assemblies in the desired orientations.

Now that I have the ball bearings oriented in space the way I need them, I need to model the billet to which they will all mount. I did things in this order because the ball bearings are metric, yet the rest of my design is in imperial units, and it just seemed easier to orient the bearings (which will interface with yet another assembly that I have yet to design) first.

I'd like to create my billet using the assembly as a reference. The assembly will tell me where I need holes in the billet to mount the bearings, where I need to cut out material for clearances, etc. I can't figure out how (or if) I can import my assembly into my part file, or what other tools are available to accomplish this task.

I'm attempting to model something similar to this. I've got the six bearings oriented in space, now I need to make the block to which they mount.

View 5 Replies View Related

AutoCAD Inventor :: Macro To Create Revolved Part

Aug 28, 2013

Looking for example macro that can create a new sketch, add a few lines and arcs, Then revolve the sketch around an axis to create a solid part. For example a shaft?

View 2 Replies View Related

AutoCAD Inventor :: Create Text In Part Drawings

Nov 28, 2011

Can we have a better way to create “text” in the Inventor part drawings?

I almost create “text” in every part drawing in different view. I have to create a sketch first, than create a text and dimension the text so I can lock the text in position, otherwise when you move the view and the text will stay in different location.

I had been used “Solid works” for long times. When I need to create a text, just click that view and create a text and the text will stay with that view, whatever you move that view and the text move together.

View 2 Replies View Related

AutoCAD Inventor :: Create Derived Part Using Only Some Features?

Jan 12, 2014

it's possible to create a derived part using only some of the features of the base components i.e. I've got a funny shaped part with a bunch of holes in it, and I need another part with exactly the same shape but totally different holes (location and size)I know you can do this with the different solids in the part (only use some of the solids) but I haven't been able to figure it out with features, if it's possible at all.

I could probably create one base part (just the shape) and derive both parts from that, but then I've got a part lying around doing jack.using IV 11.

View 5 Replies View Related

AutoCAD Inventor :: Create Simplified Part Error

Jul 15, 2013

I am trying to use Create Simplified part and during the creation process..I downloaded a model of a FD breaker off the Eaton Website in .stp format. I am simply trying to get a .ipt file of the model for my layout model.So the steps I did:

1- Open .stp file

2- Save .stp file as an .iam inventor file (ignore the  prompt box "this is not a part file", that is from my logic rule for a part file)

3- once saved in inventor format, I click the simplify tab, select create simplified part, select a name and directory and press save

4- the .iam saves into a single part, BUT it is saved as sean.ipt, not the part number I assigned earlier and it is saved to the directory C:Users, not the directory I assigned in the dialogue box earlier.

Why does it do this every time I "dummy" down an assembly to a single .ipt file?

View 6 Replies View Related

AutoCAD Inventor :: 2013 / Can Create Part With Different Configuration

Nov 19, 2012

I want to ask if in Autodesk Inventor 2013, can we create a part with a different configuration?

example:I made a cube the size of 10mm x 10mm x 10mm, after which it would be revised measures 15mm x 15mm x 15mm. The second revision to change the size of a 12mm x 12mm x 12mm.
Can all the revision is done in one file?And if I want to revise again be 10mm x 10mm x 10mm, can?

Have I been that provides revision always create a new file and the file number so much that hard to figure out which revision. I am still learning Autodesk Inventor 2013.

View 2 Replies View Related

AutoCAD Inventor :: Possible To Create Weld Build Up Around A Part

Oct 5, 2012

I'm starting with a tube and want to add a weld build up around the OD on both ends. I mainly want to do this so that when I create a sectioned view on a drawing, you can see the difference in hatching between the original tube and the weld build up. I've had to create sketches on the drawing up to this point.

The photo I've attached shows the tube and shape of the weld build up. the green line is where I would like the tube OD to be, and the weld build up would be everything above that.

I'm using Inventor Pro 2013.

View 3 Replies View Related

AutoCAD Inventor :: Create A Hole Table For A Part

Mar 8, 2013

I need to create a hole table for a part.  I would like the origin to be at the center of the part.  Problem is there is not a round hole at that location.  Attached is a similar part.  The one that I am doing is much larger and has many more holes... this is just an example.

How can I pick this as the origin of my hole table?

View 3 Replies View Related

AutoCAD Inventor :: Create Part Number From Excel?

Dec 6, 2011

I would like to link a cell value in excel with the partnumber from a assembly in Inventor. How can I made this link?

View 1 Replies View Related

AutoCAD Inventor :: Possible To Create String To Stretch As Part?

Jul 26, 2012

I would like to create string that would be tied to a rod and wrapped around an axle.  Then when the rod is moved the string rotates the axle, but the string continues to grow as it is being pulled.

View 2 Replies View Related

AutoCAD Inventor :: Create Part (IPT) Using Structural Shape?

Jan 19, 2012

Using Inventor 11 I wish to create some individual parts using Structural Shapes from the Content Center as the basis for my sketch profile and extrude to length before doing other machining.

Is it possible to do this from the Part environment directly and not use the frame generator?

View 4 Replies View Related

AutoCAD Inventor :: Change Dimension To Create Another Part

Apr 20, 2013

I like to change the dimension of the length from 388mm to 400mm to represent another similar part with another part number.  Yet I still need the old part.

What is the easiest way to do so?  When I use 'save as" and then change the dimension, I need to recreate the dimensions in the dwg files.  Is there a way to avoid creating the dimensions?

View 3 Replies View Related

AutoCAD Inventor :: How To Create Drawing And Part Template

Nov 2, 2011

I want them to appear as a one of the choices in the box after you click NEW (part, drawing, assembly) asside of standard options?

View 1 Replies View Related

AutoCAD Inventor :: Create Simplified Part Of Conveyor

Aug 6, 2013

I'm trying to create a simplied part of a conveyor. It's not too big yet, just over 7000 occurrences - see attached. Yesterday after about 5 hours I crashed Inventor (2014) and tried again. Eventually I let my PC run through the night and this morning it had completed the task. To save took almost 2 hours, producing an *.IPT of just over 830MB. When I restarted my machine (to free the RAM again) I could not open, getting a serious error.

The old shrinkwraps seemed to work way better. I need to create a "dummy" model which breaks all links to the originals assemblies so no one can tamper with it.

My specs:Inventor Professional 2014, 64 bit edition, I've got an HP Z400 desktop which is a 3.2GHz Processor with 4 cores, 12 GB RAM. NVIDIA Quadro 4000 graphics card.

View 4 Replies View Related

AutoCAD Inventor :: Create A Part That Has Spherical Feature?

Apr 16, 2013

I am trying to create a part that has a spherical feature. The spherical feature is "sliced" on the front and back to create a flat surface (see Compound Rest Handle Isometric image). Should I use workplanes to slice the sphere? What is an efficient process the slice the sphere. See Compound Rest Handle Front and Compound Rest Handle Back images and compare to the final result in the Compound Rest Handle Isometric image).

View 9 Replies View Related

AutoCAD .NET :: How To Remove User Interaction Part From A Code

May 14, 2013

I have got this code by KEAN WALMSLEY.His code will ask user to select a block and then list all of selected block's attributes. However, I need to tweak his code a little bit and instead of user interaction, the block has to be selected by its name and through my code.

Here is his code (with slight changes to suit my purpose):

rivate Sub ListAttributes()Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor Dim db As Database = Host Application Services.WorkingDatabaseDim tr As Transaction = db.TransactionManager.StartTransaction() Try Dim filList As TypedValue() = New TypedValue(0) {New TypedValue(CInt(DxfCode.Start), "INSERT")}Dim filter As New SelectionFilter(filList)Dim opts As
[code]....

 Now, I need to change this Sub to a Function as below:

Private Function ListAttributes (blockName As String) As Boolean

The aim is to list all block attributes if the 'blockName' exists in drawing and return True afterwards. Oppositely it should return me False and print nothing to Editor if blockName does not exist.

View 5 Replies View Related

AutoCAD Inventor :: How To Create Odd Shaped Hole In Sheetmetal Part

Jul 3, 2012

I'm trying to create a hole in a sheet-metal part so that a pipe can be welded in it, see attached picture. What's the best method to do this? Because the flat-pattern of this hole isn't an ellipse-shape (more like an egg), it seems it's very difficult to do.

Product Design Suite 2014
Inventor 2012 SP2, Vault 2014
HP Workstation Z220
Intel Xeon 3.4GHz
16GB RAM
Nvidia Quadro 4000
Windows 7 Professional (64bit)

View 9 Replies View Related

AutoCAD Inventor :: Create Simplified Part Not Firing Event?

May 16, 2013

note that the command "create simplified part" is not firing onpopulatefilemetadata event.

I would expect it to.

View 3 Replies View Related







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