Page 1 of 1

Geometry

Posted: Fri Oct 15, 2010 9:46 pm
by Dixie
Hi...

Is it possible to set the geometry of a object by script so that the settings are reflected in that objects' inspector ?

be well

Dixie

Re: Geometry

Posted: Fri Oct 15, 2010 11:41 pm
by WaltBrown
Hi Dixie.

Set the geometry of an object, then check out it's custom properties in the Property Inspector. You will find a new property set called "cRevGeometry" which you should be able to address.

Walt

Re: Geometry

Posted: Sun Oct 17, 2010 10:30 am
by Mark
Hi,

This really is a big hassle. You'd have to set several cRevGeneral, cRevGeometry and cRevGeometryCache proprties by script. It is possible but really compliated.

Alternatively, you might try to create a copy of an existing field, which has its geometry settings already. After creating is, call the revUpdateGeometry and revCacheGeometry commands. I can't guarantee that it works, but you might give it a try.

I'm pretty much an opponent of using the geometry manager. In more complicated projects, there is always a moment when it breaks. I always write my own script to manage object sizes and locations. It is faster, more reliable and easier to maintain in the end.

Mark

Re: Geometry

Posted: Sun Oct 17, 2010 12:10 pm
by Dixie
Hello Walt... Mark...

Thanks for the replies.. I had realised that trying to have geometry settings reflected in the property inspector was going to be a problem when creating a field by script... but I had to ask... I will maintain the geometry by writing my own script..

thanks

Dixie