How Do i Import a SAT ACIS Version 1.7 format

How Do i Import a SAT ACIS Version 1.7 format

seanl
Explorer Explorer
803 Views
3 Replies
Message 1 of 4

How Do i Import a SAT ACIS Version 1.7 format

seanl
Explorer
Explorer

I am trying to import SAT in ACIS Version 1.7 format

 

Can anyone advise how to do this. 

0 Likes
804 Views
3 Replies
Replies (3)
Message 2 of 4

ekinsb
Alumni
Alumni

Are you sure it's version 1.7?  The latest version of the SAT format that Fusion supports is SAT 7, which is a very old version now.  You can see some of the release dates for various SAT versions on the ACIS Wiki page.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 4

seanl
Explorer
Explorer

Hi Brian

 

Thanks for your reply it does say on the website version 1.7 website is http://www.steelweb.info for steel sections in SAT format when I download it is in a text format. how do I get the model into Fusion.

 

Regards

Sean

0 Likes
Message 4 of 4

ekinsb
Alumni
Alumni

You're right.  I think it is SAT version 1.7 and since Fusion supports version 7 and earlier it seems to be OK.  I saved one of the files and was able to use the "New Design from File" command inside Fusion to read it into a new file.  I'm also able to use the API to either create a new file using the SAT file or to create a new component into an existing design.  Here's the code I used to test it.

 

def run(context):
    ui = None
    try:
        app = adsk.core.Application.get()
        ui  = app.userInterface
        
        # Get import manager
        importManager = app.importManager
        
        # Get SAT import options
        satFileName = 'C:/Temp/Beam.sat'
        satOptions = importManager.createSATImportOptions(satFileName)
        satOptions.isViewFit = False
        
        # Get active design
        product = app.activeProduct
        design = adsk.fusion.Design.cast(product)
        
        # Get root component
        rootComp = design.rootComponent
        
        # Import SAT file to root component
        importManager.importToTarget(satOptions, rootComp)
        
        # Import SAT to a new design.
        importManager.importToNewDocument(satOptions)
    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))

Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes