Show messages:
1-13
14-21
From: Michael Gibson
Hi shayne,
re:
> another on my wishlist is to select all objects of a colour (say gold) and run _cvolume 10 on
> it, copying the volume cm3 to the clipboard
It would be easiest to do this by making a customized modified version of the _cvolume script.
Please attach the _cvolume .htm and .js files that you currently use and I'll show you what to modify to do those things.
- Michael
From: shayno
Thanks Michael
uploaded both
cheers Shayne
Attachments:
_CVolume.htm
_CVolume.js
From: Michael Gibson
Hi Shayne, try this version - instead of using selected objects it will use whatever solids are on style = gold whether selected or not.
And copies volume value to the clipboard.
- Michael
Attachments:
_CVolumeGold.htm
_CVolumeGold.js
From: shayno
Thanks Michael
works perfectly
and I changed my old _CVolume.htm to also copy to the clipboard
cheers
shayne
From: shayno
Hi Michael
Similar to hide unhide by style
Is it possible to write script to hide / unhide by object name say 'old'
As I cad new rings next to old designs I constantly have to hide/unhide the old one to clear the screen
Moi Ver 4
kind regards
shayne
From: Michael Gibson
Hi shayne,
re:
> Similar to hide unhide by style
> Is it possible to write script to hide / unhide by object name say 'old'
Try this one:
script: /* Toggle visibility of given name */ var name = 'old'; var item = moi.ui.sceneBrowser.objects.find( name ); if ( item ) { var any_hidden = false; var objs = moi.geometryDatabase.getObjects(); for ( var i = 0; i < objs.length && !any_hidden; ++i ) { var obj = objs.item( i ); if ( obj.name == name && obj.hidden ) { any_hidden = true; } var subobjs = obj.getSubObjects(); for ( var j = 0; j < subobjs.length && !any_hidden; ++j ) { var subobj = subobjs.item(j); if ( subobj.name == name && subobj.hidden ) { any_hidden = true; } } } } if ( any_hidden ) { item.alterStatus( 'show' ); } else { item.alterStatus( 'hide' ); }
- Michael
From: shayno
Thanks Michael
I demonstrated and recommended your software to a business associate yesterday , I'm certain he will purchase it.
kind regards
shayne
From: Michael Gibson
re:
> I demonstrated and recommended your software to a business associate
> yesterday , I'm certain he will purchase it.
Thank you shayne! - Michael
Show messages:
1-13
14-21