cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Execute Script

Execute Script

Would be nice that after you use "EXECUTESCRIPT" that it remembers where your scripts are stored on PC.

It defaults to Desktop.

6 Comments
jberen
Explorer

Mine doesn't!! HAHA!! 😉

 

cadbob
Advocate

wtf 🙂

cadbob
Advocate

Mine is now with SP1 Smiley Wink

tim-bot
Advocate

for the .net savy

<CommandMethod("ABCD", "CustomExecuteScript", CommandFlags.Modal)>
    Public Sub CustomExecuteScript()
        Using oDlg As New System.Windows.Forms.OpenFileDialog With {
            .AddExtension = True,
            .AutoUpgradeEnabled = True,
            .CheckFileExists = True,
            .DefaultExt = "cod",
            .DereferenceLinks = True,
            .Filter = "CADmep Script Code (*.cod)|*.cod",
            .Multiselect = False,
            .Title = "Execute Script"}
            If oDlg.ShowDialog = Forms.DialogResult.OK Then
                Doc.SendStringToExecute("(Progn (Command ""TakeOff"")(ExecuteScript """ & oDlg.FileName.Replace("\", "/") & """)(Princ)) ", True, False, False)
            End If
        End Using
    End Sub

 

 

andy.robins
Alumni
Status changed to: Implemented
 
andy.robins
Alumni

Executescript command now uses and remembers the SCRIPT folder defined in MAP.INI instead of the desktop.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report