Jump to content

Search the Community

Showing results for tags 'creo'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. I am looking for a way to interface AutoIT and PTC Creo using the Creo VB API COM object. I am able to do this with VBScript and in theory should also be able to replicate the same into AutoIT as well. However, For some reason, the connection does not seem be made from the Autoit script but is able to be made with VBScript. Below is my working VBScript. Dim asynconn, conn, session Set asynconn = CreateObject("pfcls.pfcAsyncConnection") MsgBox TypeName(asynconn), 0, "COM Type" Set conn = asynconn.Connect("", "", ".", 5) 'Set conn = asynconn.Start("C:\Program Files\PTC\Creo 4.0\M090\Parametric\bin\parametric.exe",".") MsgBox TypeName(conn), 0, "Connection Type" Set sess = conn.session MsgBox TypeName(sess), 0, "Session Type" It opens a connection to the COM object in Creo, and message box outputs the variable types. Below is my NOT working AutoIT Script: Local $asynconn, $conn, $session $asynconn = ObjCreate("pfcls.pfcAsyncConnection") MsgBox(0, "COM Type",ObjName($asynconn)) $conn = $asynconn.Connect("", "", ".", 5) ;$conn = $asynconn.Start("C:\Program Files\PTC\Creo 4.0\M090\Parametric\bin\parametric.exe", ".") MsgBox(0, "Connection Type", ObjName($conn)) $session = $conn.Session Msgbox(0, "Session Type", ObjName($session)) The connection on the $conn object is not being made, even if I start Creo or try connecting to an existing session. I know that there is probably a very few people who would be able to replicate this (those who have access to Creo), but would really appreciate help if someone has any ideas as to why this could be happening. Thanks. Sudeep.
×
×
  • Create New...