UPDATE: I think I solved this.
Switched companies and now use 3DExperience and am wanting to get Point2D coordinates in the 3D space. I can get the objects coordinates in a 2D space referenced from the sketch axis, but not from the basic axis. I used to get at this issue with the SPAWorkbench...
As far as linking up to Femap with Python, see a previous post I had that may help you get the femap library converted over to the python module. http://www.eng-tips.com/viewthread.cfm?qid=379339
Z,
Perhaps something similar to the following.
Call it from your routine by:
RunNastran("C:\mypath\myfile.bdf")
Sub RunNastran(FilenameAndPath As String)
' Send a file with full path to this subroutine
' The command will be run in a shell window
Dim WshShell As Object
Dim ShellCmd As String...
Ok, forgot to correct the message that gets printed to the Message Window.
Line 109 should be: App.feAppMessage(FCM_NORMAL,"Created copies in Cys ID " & CStr(cs.ID))
APav, great script! Really.
I did find a problem with using it when it encountered node IDs that already existed. The script creates new nodes based on an offset, but if it finds one that already exists it assigns the next empty ID. But later on when it assigned nodes to the new elements it...
Oddly enough had this same issue a 2 weeks ago.
For minor things where you don't need to get output (as variants) from the functions, you can connect to an open session like this:
from win32com.client import Dispatch
femap = Dispatch("femap.model")
femap.feAppMessage(0, "Python has attached...