Message 1 of 4
Adding a user property to post, property showing as unspecified
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've added properties before with no issue, but I'm going around in circles on this one.
I've added a placeholder property "wibble" to a post, with a definition. When it comes to post a program, the property is showing as UNSPECIFIED. I've tried hand typing, copy/paste & rename, setting the type to integer/boolean/enum.
I've double checked for typos and I'm just stumped now
properties = { wibble: true, //test property setToolLengths: true, //writes tool length probing to end of program writeMachine: false, // write machine writeTools: false, // writes the tools preloadTool: true, // preloads next tool on tool change if any showSequenceNumbers: false, // show sequence numbers sequenceNumberStart: 10, // first sequence number sequenceNumberIncrement: 5, // increment for sequence numbers optionalStop: true, // optional stop o8: false, // specifies 8-digit program number separateWordsWithSpace: true, // specifies that the words should be separated with a white space allow3DArcs: false, // specifies that 3D circular arcs are allowed useRadius: false, // specifies that arcs should be output using the radius (R word) instead of the I, J, and K words forceIJK: false, // force output of IJK for G2/G3 when not using R word useParametricFeed: true, // specifies that feed should be output using Q values showNotes: false, // specifies that operation notes should be output useSmoothing: true, // specifies if smoothing should be used or not usePitchForTapping: true, // enable to use pitch instead of feed for the F-word for canned tapping cycles - note that your CNC control must be setup for pitch mode! useG95: false, // use IPR/MPR instead of IPM/MPM useG28: true, // specifies that G28 should be used instead of G53 useG54x4: false, // Fanuc 30i supports G54.4 for Workpiece Error Compensation useSubroutines: false, // specifies that subroutines per each operation should be generated useSubroutinePatterns: false, // generates subroutines for patterned operation useSubroutineCycles: false, // generates subroutines for cycle operations on same holes useRigidTapping: "yes", // output rigid tapping block }; // user-defined property definitions propertyDefinitions = { wibble: {title:"something", description:"something else", group:0, type:"boolean"}, setToolLengths: {title:"Write tool length setting", description:"Writes a tool length setting program after the main program", group:0, type:"boolean"}, writeMachine: {title:"Write machine", description:"Output the machine settings in the header of the code.", group:0, type:"boolean"}, writeTools: {title:"Write tool list", description:"Output a tool list in the header of the code.", group:0, type:"boolean"}, preloadTool: {title:"Preload tool", description:"Preloads the next tool at a tool change (if any).", group:1, type:"boolean"}, showSequenceNumbers: {title:"Use sequence numbers", description:"Use sequence numbers for each block of outputted code.", group:1, type:"boolean"}, sequenceNumberStart: {title:"Start sequence number", description:"The number at which to start the sequence numbers.", group:1, type:"integer"}, sequenceNumberIncrement: {title:"Sequence number increment", description:"The amount by which the sequence number is incremented by in each block.", group:1, type:"integer"}, optionalStop: {title:"Optional stop", description:"Outputs optional stop code during when necessary in the code.", type:"boolean"}, o8: {title:"8 Digit program number", description:"Specifies that an 8 digit program number is needed.", type:"boolean"}, separateWordsWithSpace: {title:"Separate words with space", description:"Adds spaces between words if 'yes' is selected.", type:"boolean"}, allow3DArcs: {title:"Allow 3D arcs", description:"Specifies whether 3D circular arcs are allowed.", type:"boolean"}, useRadius: {title:"Radius arcs", description:"If yes is selected, arcs are outputted using radius values rather than IJK.", type:"boolean"}, forceIJK: {title:"Force IJK", description:"Force the output of IJK for G2/G3 when not using R mode.", type:"boolean"}, useParametricFeed: {title:"Parametric feed", description:"Specifies the feed value that should be output using a Q value.", type:"boolean"}, showNotes: {title:"Show notes", description:"Writes operation notes as comments in the outputted code.", type:"boolean"}, useSmoothing: {title:"Use smoothing", description:"Specifies if smoothing should be used or not.", type:"boolean"}, usePitchForTapping: {title:"Use pitch for tapping", description:"Enables the use of pitch instead of feed for the F-word in canned tapping cycles. Your CNC control must be setup for pitch mode!", type:"boolean"}, useG95: {title:"Use G95", description:"Use IPR/MPR instead of IPM/MPM.", type:"boolean"}, useG54x4: {title:"Use G54.4", description:"Fanuc 30i supports G54.4 for workpiece error compensation.", type:"boolean"}, useSubroutines: {title:"Use subroutines", description:"Specifies that subroutines per each operation should be generated.", type:"boolean"}, useSubroutinePatterns: {title:"Use subroutine patterns", description:"Generates subroutines for patterned operation.", type:"boolean"}, useSubroutineCycles: {title: "Use subroutine cycles", description: "Generates subroutines for cycle operations on same holes.", type: "boolean"}, useG28: {title: "G28 Safe retracts", description: "Disable to use G53 instead of G28 for retracts.", type: "boolean"}, useRigidTapping: { title: "Use rigid tapping", description: "Select 'Yes' to enable, 'No' to disable, or 'Without spindle direction' to enable rigid tapping without outputting the spindle direction block.", type: "enum", values:[ {title:"Yes", id:"yes"}, {title:"No", id:"no"}, {title:"Without spindle direction", id:"without"} ] }, };