Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on naming my timelineGroups.
This code works in one of my scripts:
moldBaseTimelineGroups = design.timeline.timelineGroups
moldBaseIndex = newOcc.timelineObject.index
chamferInputIndex = newChamferFeats.timelineObject.index
moldBaseTimelineGroup = moldBaseTimelineGroups.add(moldBaseIndex, chamferInputIndex)
moldBaseTimelineGroup.name = _inputSelectBaseSize + ' Mold Base'
This works and puts puts the name '1012 Mold Base' at the bottom of the group in the timeline.
This code however just puts Group# at the bottom of the group.
fhscsTimelineGroups = design.timeline.timelineGroups
fhscsIndex = newOcc.timelineObject.index
hexExtIndex = hexExt.timelineObject.index
fhscsTimelineGroup = fhscsTimelineGroups.add(fhscsIndex, hexExtIndex)
fhscsTimelineGroup.name = strResult + ' x ' + strBoltBodyLength + ' FHSCS'
strResult = '1/4-20'
strBoltBodyLength = '1.0'
So the name should be '1/4-20 x 1.0 FHSCS' (I've verified the variables during debugging)
However, what I get is 'Group 6' as the timlineGroup name at the bottom of the group in the timeline.
I tried:
fhscsBolt = strResult + ' x ' + strBoltBodyLength + ' FHSCS'
fhscsTimelineGroup.name = fhscsBolt
I verified that fhscsBolt did equal '1/4-20 x 1.0 FHSCS'
But fhscsTimelineGroup.name still comes out 'Group 6'
Not much to go on, but any ideas would help.
Thank you.
Brad Bylls
Solved! Go to Solution.