|
[Sponsors] |
[DesignModeler] Macro / Script for automatic geometry import |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 5, 2016, 05:06 |
|
#21 |
New Member
Aung Ko Latt
Join Date: Jul 2016
Location: Germany
Posts: 12
Rep Power: 10 |
||
September 5, 2016, 05:08 |
|
#22 | |
New Member
Aung Ko Latt
Join Date: Jul 2016
Location: Germany
Posts: 12
Rep Power: 10 |
Thanks Elketonis
I didn't know about it. I will try for this. Quote:
|
||
September 5, 2016, 10:51 |
|
#23 | |
New Member
Join Date: Sep 2016
Posts: 3
Rep Power: 10 |
Thanks for the reply Kapi!
So, when I import a geometry file and UpdateFromCAD, I have one part with three bodies. What I need is three bodies as separate parts. I can import the three files separately (but I am not sure how to do this) or I can import the geometry file and then form a new part from each body, so that I end up with three parts and three bodies. Do you know how to select body 1 and form a new part and select body 2 and form a new part in JScript? That should give me what I'm after. Quote:
|
||
September 5, 2016, 20:51 |
|
#24 |
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 |
you may try this code for exploding part after Regen.
All i could find was this code! Code:
agTreeExplodePart(); |
|
September 6, 2016, 09:27 |
Selecting the part before exploding
|
#25 |
New Member
Join Date: Sep 2016
Posts: 3
Rep Power: 10 |
Kapi,
When I try to run a script in DesignModeler with the command Code:
agTreeExplodePart(); If I have the following geometry structure: Part1 _Body1 _Body2 _Body3 How do I select the part that is to be exploded? I tried the select all bodies code Code:
ag.gui.PickFilter(5, true); ag.gui.SelectAll(); agTreeExplodePart(); Also, I cannot use the following code Code:
geometry1.SendCommand(Command="""ag.m.NewSession (1); var imp1 = ag.b.Import("D:/....prt"); imp1.Name="Name"; imp1.Operation=ag.c.Frozen; ag.b.Regen();""") |
|
September 6, 2016, 20:07 |
|
#26 |
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 |
give object as Part1
may be try this then! Code:
agTreeExplodePart(Part1); |
|
August 25, 2018, 20:03 |
|
#27 | |
New Member
Luiz Pancini
Join Date: Jan 2015
Posts: 3
Rep Power: 11 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] How to Import a DWG Geometry to ICEM? | qzsky | ANSYS Meshing & Geometry | 6 | June 11, 2013 07:43 |
[DesignModeler] problem with import geometry from catia | pavilion | ANSYS Meshing & Geometry | 1 | November 23, 2012 11:45 |
[ICEM] Problem in geometry creation by script | lavoz | ANSYS Meshing & Geometry | 4 | March 12, 2010 11:56 |
import catia geometry in icem v10 | anorky | Main CFD Forum | 4 | December 26, 2009 02:15 |
creating geometry using "Script files" in ICEMCFD | jaber | Main CFD Forum | 1 | November 11, 2007 10:28 |