Moldflow Insight Forum
Welcome to Autodesk’s Moldflow Insight Forums. Share your knowledge, ask questions, and explore popular Moldflow Insight topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API: Addxy for Path Plot

0 REPLIES 0
Reply
Message 1 of 1
BorealisG
304 Views, 0 Replies

API: Addxy for Path Plot

Hi

 

Is it possible to add Node IDs at XY Path plot via API as well ?

 

My code looks like:

 

 

 

SetLocale("en-us")
Set Synergy = CreateObject("synergy.Synergy")
Synergy.SetUnits "Metric"
Set StudyDoc = Synergy.StudyDoc()
Set EntList = StudyDoc.CreateEntityList()
Set Project = Synergy.Project()
Set PlotManager = Synergy.PlotManager()
Str = Project.GetFirstStudyName()

While Str <> ""
    Project.OpenItemByName Str, "study"
    Set StudyDoc = Synergy.StudyDoc()
    StudyName = Str
    Set Plot = PlotManager.CreatePlotByDsID2(1630, 23)
    EntList.SelectFromString "N150493 N151968 N150297 N156517 N151057 N153974 N156271 N154046"  '* popoulate the
    Plot.AddXYPlotCurve(EntList)  '* plot the curve of entity
    Set Viewer = Synergy.Viewer()
    Viewer.ShowPlot Plot
    Set Plot = Viewer.ActivePlot()
    Plot.SaveXYPlotCurveData Name
    Str = Project.GetNextStudyName( Str )
    StudyDoc.save
    StudyDoc.close
WEnd

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report