CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [DesignModeler] Jscript command for Fill in DesignModeler (https://www.cfd-online.com/Forums/ansys-meshing/152276-jscript-command-fill-designmodeler.html)

kar.coep April 28, 2015 00:17

Jscript command for Fill in DesignModeler
 
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)?

Kapi April 28, 2015 18:28

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

kar.coep April 29, 2015 01:22

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?

Kapi April 29, 2015 02:17

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

kar.coep April 29, 2015 04:50

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.

Kapi April 29, 2015 21:18

Hi Kar,

After quick search, I found the below code from JS files.
Try this!

Code:

ag.gui.CreateCap();
and let me know if it works!!

Cheers
KAPI

kar.coep April 30, 2015 02:09

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'?

kar.coep April 30, 2015 02:43

Does ag.gui command require Design modeler to be open in interactive mode?

Kapi April 30, 2015 18:48

Hi Kar,

Quote:

Did you search for this command in 'C:\Program Files\ANSYS Inc\v150\aisol\DesignSpace\DSPages\scripts'?
I just went to "C:\Program Files\ANSYS Inc\v150" and typed in what I wanted and then looked into JS files for "Fill" till I get it.

Thats the way you should go for any function you need.

Quote:

Does ag.gui command require Design modeler to be open in interactive mode?
Yes it does.

But when updating Geometry in DesignModeler via "parameters" you can choose not to open.

Hope It helps,

Cheers
KAPI


All times are GMT -4. The time now is 13:35.