Message 1 of 2
Script not working as a function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created a script that works just fine.
I copied and pasted that script to make it an add-in, works just fine.
Now I want to call that script from another script, so I made it a function, import it into the main script, call the function, it runs to a certain point and stops.
I added this at the top of the script to make it a function:
def createShcs():
and call it from the main script:
SHCS.createShcs()
It stops at
def drawBolt(design, numBoltBodyLength, numBoltClearanceLength, numBoltBodyDiam, numBoltHeadDiam, numBoltHeadHeight, numBoltHexSize, numBoltHeadFillet, numBoltTapDrill, numBoltClearDiam, numBoltCboreDiam, numThreadEngage😞
Like I said earlier, this runs just fine as a stand alone script, but not as a function script.
Any ideas?
Brad Bylls