arrowGap preset (scripting)

Next
 From:  pressure (PEER)
11011.1 
Is there a way to set arrowGap and arrowGapModelUnits for an annotation preset? I tried to set arrowGap on a preset, but the code below returns arrowGap = undefined when the preset is fetched fresh from the database. I also didn't see arrowGap or arrowGapModelUnits in moi.ini

code:
var preset = presetfromName('Default');

preset.arrowGap = 10.0;
moi.ui.alert( 'preset.arrowGap = ' + preset.arrowGap );

var presetFresh = presetfromName('Default');
moi.ui.alert( 'preset.arrowGap = ' + presetFresh.arrowGap );

// returns an annotationPreset given that preset's name
// null if no preset with the given name exists
function presetfromName(name) {

    var preset = null;

    var presetsArray = moi.geometryDatabase.getAnnotationPresets();

    for (var i = 0; i < presetsArray.length; ++i) {

        if (name === presetsArray.item(i).presetName) {
            preset = presetsArray.item(i);
            break;
        }
    }
    return preset;
}


- Peer
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11011.2 In reply to 11011.1 
Hi Peer, the Arrow gap setting is not fully implemented, some information here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=10011.18

There isn't a property for it currently on presets.

Thanks,
- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  pressure (PEER)
11011.3 In reply to 11011.2 
Hi Michael,

Thanks for confirming that I can't set an arrow gap using a preset.

- Peer
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All