3D Design

3D Design

Phyton, Open File, Start Automatic in Spaceclaim

    • Fabian Scr
      Subscriber

      Hello

       

      Can the Included Phyton Script edit the file by Opening?

      Open the File -> Start Phyton  Script Automatic to Write a Yellow Text in the Position X10,Y10 the text is in Description of the Document

    • Aniket
      Ansys Employee

      Can you please explain your question in some more detail? Did you mean to attach images inline?

      -Aniket

      How to access Ansys help links

      Guidelines for Posting on Ansys Learning Forum

    • Fabian Scr
      Subscriber

      -->   (Position X 5 and Y 5, Left corner) --> Field --> Description --> Characteristics --> Mirroring Yes

    • Aniket
      Ansys Employee

      Unfortunately, your question is still not clear to me, do you want to create a note using a script? If yes, you can check the below script:

      from SpaceClaim.Api.V22 import Note
      from SpaceClaim.Api.V22 import LocationPoint

      sel = Selection.GetActive()
      if sel.Evaluations.Count >0:
          plane = DatumPlaneCreator.CreatePlaneFromSelection(sel)
          datumP = DatumPlane.Create(GetActivePart(), "myPlane", plane)
          location =LocationPoint.Center
          Note.Create(datumP, PointUV.Origin, location, 0.005, "my Note")

      If this is not what you need, please explain your question in more details.

      -Aniket

      How to access Ansys help links

      Guidelines for Posting on Ansys Learning Forum

    • Fabian Scr
      Subscriber

      i want create a note with the Text in Description from the Spaceclaim file Characteristics, the note is mirrored and the Position is in the Corner

      This Automatic by Open the File (Run the Phyton Script by Open a File)

    • Aniket
      Ansys Employee

      does the code above help then? It should help right?

      -Aniket

      How to access Ansys help links

      Guidelines for Posting on Ansys Learning Forum

    • Fabian Scr
      Subscriber

      Half :-) can i Start phyton Script automatic by Open a Spaceclaim File?

    • Aniket
      Ansys Employee

      Are you using SpaceClaim inside the workbench or standalone?

      -Aniket

      How to access Ansys help links

      Guidelines for Posting on Ansys Learning Forum

Viewing 7 reply threads
  • You must be logged in to reply to this topic.