|
[Sponsors] |
[DesignModeler] Jscript command for Fill in DesignModeler |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 28, 2015, 01:17 |
Jscript command for Fill in DesignModeler
|
#1 |
Member
Join Date: Oct 2014
Posts: 44
Rep Power: 12 |
What is the Jscript command for Fill in design modeler? Also is there any command/property of bodies and surfaces that states the distance from coordinate system (to name the bodies in the direction of the flow starting from coordinate system)?
|
|
April 28, 2015, 19:28 |
|
#2 |
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 |
Hi Kar,
I just replied to one of your thread, have a look in your JS files for answers. Just search Fill in your Ansys folder and it should give you some JS files, go through them and I am sure you will find Fill function. Cheers KAPI |
|
April 29, 2015, 02:22 |
|
#3 |
Member
Join Date: Oct 2014
Posts: 44
Rep Power: 12 |
Hi Kapi,
Thanks for the reply I am not able to access the C drive js files as the software is installed on my Company's Machine and I don't have the admin rights. Is there any other way to get these js files? are these on ansys customer portal? |
|
April 29, 2015, 03:17 |
|
#4 |
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 |
Hi kar,
Yes you can find lot of functions with examples on Customer portal. You can find all these JS files in the machine where Ansys is installed , I suggest you ask for Admin rights or get rights once and copy all JS files somewhere safe to access them. Cheers KAPI |
|
April 29, 2015, 05:50 |
|
#5 |
Member
Join Date: Oct 2014
Posts: 44
Rep Power: 12 |
Hello Kapi,
I did search the ansys .js files but could not find command for Fill. Is there any other way to get it? I have read that we can have trial and error with ag.gui.xxxx command generally. So I tried using ag.gui.AddFill(); ag.gui.InsertFill(); ag.gui.CreateFill(); ag.gui.NewFill(); ag.gui.Fill(); but no success. |
|
April 29, 2015, 22:18 |
|
#6 |
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 |
Hi Kar,
After quick search, I found the below code from JS files. Try this! Code:
ag.gui.CreateCap(); Cheers KAPI |
|
April 30, 2015, 03:09 |
|
#7 |
Member
Join Date: Oct 2014
Posts: 44
Rep Power: 12 |
Thanks Kapi!!! This command works as expected..
Thanks again Did you search for this command in 'C:\Program Files\ANSYS Inc\v150\aisol\DesignSpace\DSPages\scripts'? |
|
April 30, 2015, 03:43 |
|
#8 |
Member
Join Date: Oct 2014
Posts: 44
Rep Power: 12 |
Does ag.gui command require Design modeler to be open in interactive mode?
|
|
April 30, 2015, 19:48 |
|
#9 | ||
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 |
Hi Kar,
Quote:
Thats the way you should go for any function you need. Quote:
But when updating Geometry in DesignModeler via "parameters" you can choose not to open. Hope It helps, Cheers KAPI |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[DesignModeler] DesignModeler Scripting: How to get Full Command Access | ANT | ANSYS Meshing & Geometry | 53 | February 16, 2020 16:13 |
Physical size of geometry in DesignModeler | Michael Rasmussen | CFX | 9 | June 16, 2017 04:27 |
[DesignModeler] find features of Gambit in DesignModeler | code_source | ANSYS Meshing & Geometry | 13 | April 30, 2014 08:33 |
[DesignModeler] Importing Solidworks body (incl parameters) into DesignModeler | Evona | ANSYS Meshing & Geometry | 0 | April 14, 2013 09:01 |
[Other] exchange of parameter values between TurboGrid and DesignModeler in Workbench | la7low | ANSYS Meshing & Geometry | 2 | February 21, 2011 16:12 |