Adding a user property to post, property showing as unspecified

Adding a user property to post, property showing as unspecified

vworpi
Advocate Advocate
547 Views
3 Replies
Message 1 of 4

Adding a user property to post, property showing as unspecified

vworpi
Advocate
Advocate

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"}
    ]
  },
};
0 Likes
548 Views
3 Replies
Replies (3)
Message 2 of 4

vworpi
Advocate
Advocate

This appears to be a caching issue, the post mods aren't updating in the current file. If I open another file, my new property is there.

 

This has, unfortunately, lead to a much more serious error. All of my posts are now failing with the following error:

Error: Failed to set property 'wibble' to 'axial'.
Code page changed to '1252  (ANSI - Latin I)'
Start time: Monday, July 29, 2019 07:03:04 PM
Warning: function getProgramNameAsInt does not always return a value
Warning: function getProgramNameAsInt does not always return a value
Warning: function getProgramNameAsString does not always return a value
Warning(c:\users\max\appdata\local\autodesk\autodesk fusion 360\ygavkdpmju59\w.login\m\d20180911148240781\camposts\VMC05 - Doosan Mynx 5 Axis.cps:1662): octal literals and octal escape sequences are deprecated
Warning(c:\users\max\appdata\local\autodesk\autodesk fusion 360\ygavkdpmju59\w.login\m\d20180911148240781\camposts\VMC05 - Doosan Mynx 5 Axis.cps:1667): octal literals and octal escape sequences are deprecated
Warning(c:\users\max\appdata\local\autodesk\autodesk fusion 360\ygavkdpmju59\w.login\m\d20180911148240781\camposts\VMC05 - Doosan Mynx 5 Axis.cps:1678): octal literals and octal escape sequences are deprecated
Warning(c:\users\max\appdata\local\autodesk\autodesk fusion 360\ygavkdpmju59\w.login\m\d20180911148240781\camposts\VMC05 - Doosan Mynx 5 Axis.cps:1683): octal literals and octal escape sequences are deprecated
Warning(c:\users\max\appdata\local\autodesk\autodesk fusion 360\ygavkdpmju59\w.login\m\d20180911148240781\camposts\VMC05 - Doosan Mynx 5 Axis.cps:1704): octal literals and octal escape sequences are deprecated
Warning(c:\users\max\appdata\local\autodesk\autodesk fusion 360\ygavkdpmju59\w.login\m\d20180911148240781\camposts\VMC05 - Doosan Mynx 5 Axis.cps:1716): octal literals and octal escape sequences are deprecated
Warning(c:\users\max\appdata\local\autodesk\autodesk fusion 360\ygavkdpmju59\w.login\m\d20180911148240781\camposts\VMC05 - Doosan Mynx 5 Axis.cps:1735): octal literals and octal escape sequences are deprecated
Warning(c:\users\max\appdata\local\autodesk\autodesk fusion 360\ygavkdpmju59\w.login\m\d20180911148240781\camposts\VMC05 - Doosan Mynx 5 Axis.cps:1742): octal literals and octal escape sequences are deprecated
Code page changed to '20127 (US-ASCII)'

###############################################################################
Error: ReferenceError: axial is not defined
Error at line: 1

Stack dump:
@:0
Failed while processing global script.
###############################################################################

0 Likes
Message 3 of 4

vworpi
Advocate
Advocate

Problem persisted after a reboot, then Fusion insisted on an update. The update failed (!) and recommended a reinstall(!), which I had to do as Fusion would no longer start.

The reinstall appears to have cured my global script issue, things are posting again.

0 Likes
Message 4 of 4

vworpi
Advocate
Advocate

I'm still having issues where properties from one post are populating another. Currently, I have a post for a 3 axis machine spitting out extraneous B positions. Nothing has been changed, machine configuration is still false. It just seems to be holding onto a value from a previous post run earlier today.

Run through my other 3 axis posts and they are doing the same.

 

My work PC was fine this morning, it only seems to happen on my home PC.

0 Likes