Interfacing C# code with SolidWorks via Softmotion

Hi folks,
I need to interface some C# code with a Solidworks model via LabVIEW/Softmotion, and in the interests of not going up too many blind alleys was wondering if anyone can give me any architectural pointers.
I can interface LabVIEW itself with the code either as a DLL or a TCP/IP server, my preference is for a DLL but its not vital. What I'm wondering is if Softmotion will still interface with SOlidworks if I compile the LabVIEW project as a DLL? The C# app will be sending control commands to the Solidworks model, and receiving confirmation messages (e.g. prox switch open/closed) back, so the TCP/IP option seems to make more sense from the real-time control perspective.
ANy pointers would be much appreciated.
Thanks!

Hi,
Sorry in advance for not being particularly helpful, but I'm afraid you just have to try to build a DLL with SoftMotion and try interfacing it with SolidWorks to see if it works. I wasn't able to find any information from previous service requests or any other internal literature on this kind of integration; however, I don't think there would be any reasons why it wouldn't work.
Regards,
Imtiaz Chowdhury
Head of Digital Technologies
Brand786

Similar Messages

  • Printing labels (barcode, datamatrix code, ...) with LabView via Codesoft

    Hello together,
    could anyone post a sample vi which enables printing labels (barcodes, datamatrix code, ...) with LabView
    via the Teklynx Codesoft Runtime Software? There are no sample programs from Teklynx for LabView.
    Many Thanks for your help, Thomas.
    Message Edited by maximint on 01-04-2007 10:04 AM

    maximint wrote:
    Hi JLS,
    thanks for the answer. I agree with you that closing the references is the best und most stable solution. But it is really slow. I made an exe but this is also slow.
    But apart from this, the VI is running well, even with a handing over of variables. I guess this is one of the first VIs in the net which combines LV with
    Codesoft from Teklynx.
    Thanks, Thomas.
    PS: I made a wrong click on the rating of your last post. Sorry. I guess I rated it too bad.
    Well, this is easily solved with an intelligent global buffer VI or as they are also often called a LabVIEw 2 style global. I use them quite often for all kinds of reasons including to avoid globals in my programs almost 100% but this is one of the cases where they are also very handy.
    Basically you write a VI that has a while loop, and a case structure inside. The while loop normally only executes once. One or more uninitialized shift registers store different values that can be reused on each call to that VI. The case selector is wired to an enum (I make them always strict typedefed) on the front panel and that one is connected to the connector pane of the VI.
    Make the enum have init, print, close items and in the respective case frame do the opening of the refnum in the init case and anything else you need to do once at initialization time storing the refnum to the right shift register terminal. In the close case do everything to close done the software and then close the refnum coming from the right shift register terminal itself passing a Not A Refnum to the right shift register terminal. The print case uses the refnum from the right shift register terminal too, does all that is necessary to do printing and then stores the refnum back to the right shift register terminal. You now have an intelligent manager function for your interface to the printing software.
    The init case is called somewhere during initialization of your application while the close case is called somwehre when you close your application. A variant is to combine the init and print case but forst test for the refnum to be Not A Refnum (comparison palette) and in that case do the initialization first, otherwise just do the printing. The advantage with this is that the Codesoft interface is only initialized if you really need it.
    There is one caveat for this if you use dynamic top level VIs to implement for instance test steps or deamon like operation. LabVIEW remembers the top level VI under whom a refnum was opened and automatically closes refnums when that top level VI goes idle (stops running). So you would need to make sure that the initialization is done in the main hierarchy that is guaranteed to run for the entire time that your interface is required.
    I have included a small archive containing an API for Codesoft 7 that also supports variable query and substitution in templates. It is an older version of something I'm currently using and not very well tested as is, but the newer version is a lot more involved and complicated and not suited to be put here. I also included another archive showing a version of such an intelligent manager buffer function using that API.
    Rolf Kalbermatter

  • Failure with EWS via WWSAPI (native code)

    Failure with EWS via WWSAPI (native code)
    I'm trying to make a request against Exchange(*) EWS
    using WWSAPI (native code).
    Exchange replies with the error:
     "Cannot process the message because the content type 
     'application/soap+xml; charset=utf-8; 
      action="http://schemas.microsoft.com/exchange/services/2006/messages/ResolveNames"'
      was not the expected type 'text/xml; charset=utf-8'."
    It seems the SOAP envelope is ill-formed.
    If I manually create the envelope (without WWSAPI) EWS gives no error.
    Is WWSAPI supported for EWS?
    I can provide all the code for testing.
    Thanks & regards
    josue
    On WebServices tracing I see the following events:
    Sending message - bin  (id: 1): 
    3C 73 3A 45 6E 76 65 6C 6F 70 65 20 78 6D 6C 6E 73
    3A 73 3D 22 68 74 74 70 3A 2F 2F 77 77 77 2E 77 33
    2E 6F 72 67 2F 32 30 30 33 2F 30 35 2F 73 6F 61 70
    2D 65 6E 76 65 6C 6F 70 65 22 3E 3C 73 3A 48 65 61
    64 65 72 3E 3C 52 65 71 75 65 73 74 53 65 72 76 65
    72 56 65 72 73 69 6F 6E 20 56 65 72 73 69 6F 6E 3D
    22 45 78 63 68 61 6E 67 65 32 30 31 30 5F 53 50 31
    22 20 78 6D 6C 6E 73 3D 22 68 74 74 70 3A 2F 2F 73
    63 68 65 6D 61 73 2E 6D 69 63 72 6F 73 6F 66 74 2E
    63 6F 6D 2F 65 78 63 68 61 6E 67 65 2F 73 65 72 76
    69 63 65 73 2F 32 30 30 36 2F 74 79 70 65 73 22 2F
    3E 3C 2F 73 3A 48 65 61 64 65 72 3E 3C 73 3A 42 6F
    64 79 3E 3C 52 65 73 6F 6C 76 65 4E 61 6D 65 73 20
    52 65 74 75 72 6E 46 75 6C 6C 43 6F 6E 74 61 63 74
    44 61 74 61 3D 22 74 72 75 65 22 20 43 6F 6E 74 61
    63 74 44 61 74 61 53 68 61 70 65 3D 22 49 64 4F 6E
    6C 79 22 20 78 6D 6C 6E 73 3D 22 68 74 74 70 3A 2F
    2F 73 63 68 65 6D 61 73 2E 6D 69 63 72 6F 73 6F 66
    74 2E 63 6F 6D 2F 65 78 63 68 61 6E 67 65 2F 73 65
    72 76 69 63 65 73 2F 32 30 30 36 2F 6D 65 73 73 61
    67 65 73 22 3E 3C 55 6E 72 65 73 6F 6C 76 65 64 45
    6E 74 72 79 3E 43 6C 65 62 65 72 3C 2F 55 6E 72 65
    73 6F 6C 76 65 64 45 6E 74 72 79 3E 3C 2F 52 65 73
    6F 6C 76 65 4E 61 6D 65 73 3E 3C 2F 73 3A 42 6F 64
    79 3E 3C 2F 73 3A 45 6E 76 65 6C 6F 70 65 3E 
    Sending message        (id: 1): 
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
      <s:Header>
        <RequestServerVersion Version="Exchange2010_SP1" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"/>
      </s:Header>
      <s:Body>
        <ResolveNames ReturnFullContactData="true" ContactDataShape="IdOnly" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
          <UnresolvedEntry>Cleber</UnresolvedEntry>
        </ResolveNames>
      </s:Body>
    </s:Envelope>
    Error occurred: 0x803D0000 - The input data was not in the expected format or did not have the expected value.
    Error occurred: 0x0 - The format of the HTTP request was not supported by the server.
    Error occurred: 0x0 - The server returned HTTP status code '415 (0x19F)' with text
    'Cannot process the message because the content type 'application/soap+xml;
    charset=utf-8; action="http://schemas.microsoft.com/exchange/services/2006/messages/ResolveNames"'
    was not the expecte
    Error occurred: 0x0 - There was an error communicating with the endpoint at 'https://gpe-exc2k10/EWS/Exchange.asmx'.
    WsCall API failed by 0x803D0000
    (*) Microsoft Exchange 2010 SP3 with Update Rollup 7

    Thank you for the tip. I was using SOAP 1.2. After changing to SOAP 1.1 it worked fine.
    WS_ENVELOPE_VERSION soapVersion = WS_ENVELOPE_VERSION_SOAP_1_1;
    Thanks and regards,
    Josue

  • Solidworks and Softmotion error -77080

    Hi
    I'm using solidworks premium 2011 x64 with softmotion and LabVIEW 2011 SP1.
    I've buildt a ver simple motor in solidworks and connecting to it via softmotion and moving it, that was working.
    But now for no apparent reason I get the following error from LabVIEW  when I try to start the simulation
    Error -77080
    An error occoured while reading deployed data
    re-deploying items doesnt help, I've tried rebuilding the project from scratch and same issue.
    If anyone could help that would be great
    Cheers
    Kurt
    Kurt Friday
    www.sciware.com.au

    i had the same issue, so what i did was just to deploy the motors shown bellow the Solidwork file on the project, see please attachment, i hope this can help you.
    Regards
    Javier S.L.
    Attachments:
    deploy.jpg ‏32 KB

  • R12 - AP Invoice Lines Interface & Tax Codes

    We have a slight problem getting AP Invoice Lines through the Payables Open Interface. In 11i the value held in the TAX_CODE column was validated (against AP_TAX_CODES I believe), and if wrong or missing the line was rejected. The eTRM for R12 claims this column is still validated, although against ZX_TAXES_B, however testing shows this to be untrue. Support documentation from Oracle (e.g. note 472649.1) suggest a number of other columns are now used for tax validation, however testing agains shows this to be untrue. The only column we can find which is validated is TAX_CLASSIFICATION_CODE, and if this column contains a valid tax code then the invoice line will be accepted, however we cannot find any documentation which shows that this column should be used.
    Has anyone out there bottomed out this issue, and if so is there any insight you could offer?
    Many thanks.
    Edited by: user13317468 on Jul 4, 2011 1:32 AM

    Hi Vinod,
    please check the below reference from oracle support ...
    Case Study: How Payables Open Interface Import works with EB Tax for importing Invoices [ID 1381400.1]
    Regards,
    Ivruksha

  • File download via servlet doesn't work with IE via https

    I have a URL from a jsp page which points to a struts action servlet. This works with firefox via http and https. With IE it works via http but it doesn't work via https. The error message I get is "Internet Explorer cannot download ...File_name.doc from Server_name.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
    Here is my code.
    public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws Exception {
              String attachmentURL = AppSettings.get("EAIAttachmentURL");
              String encodingScheme = AppSettings.get("EAI_encoding");
              String filename = request.getParameter("URL");
              String fileStr = URLEncoder.encode(filename, encodingScheme);
              fileStr = fileStr.replaceAll("\\+","%20");
              URL targetURL = new URL(attachmentURL + "/" + fileStr);
              URLConnection connection = targetURL.openConnection();
              connection.setDoInput(true);
              connection.setDoOutput(false);
              connection.setAllowUserInteraction(false);
              BufferedInputStream attachmentStream = new BufferedInputStream(
                        connection.getInputStream());
              * Setting the content disposition filename, so that the
              * attachment preserves the original filename
              response.setHeader("Content-Disposition",
                        " attachment; filename=" + filename);
              if (connection.getContentType() != null) {
                   response.setContentType(connection.getContentType());
              else {
                   response.setContentType("application/octet-stream");
              response.setContentLength(connection.getContentLength());
              response.setHeader("Pragma", "public");
              response.setHeader("Cache-Control", "public, max-age=-1, must-revalidate");
              if ( connection.getContentEncoding() != null ) {
                   response.setHeader("Content-Encoding",
                             connection.getContentEncoding());
              BufferedOutputStream responseStream = new BufferedOutputStream(
                        response.getOutputStream());
              byte[] buffer = new byte[4096];
              int bytesRead;
              try {
                   while ((bytesRead = attachmentStream.read(buffer)) != -1) {
                        responseStream.write(buffer, 0, bytesRead);
              } catch (Exception e) {
                   log.error("AttachmentProxy error: " + e.getMessage());
              } finally {
                   if (attachmentStream != null) {
                        attachmentStream.close();
                   if (responseStream != null) {
                        responseStream.flush();
                        responseStream.close();
              return null;
    There is a bug with IE when downloading via https according to Microsoft support site. Refer to http://support.microsoft.com/default.aspx?scid=kb;en-us;812935
    According to this bug, I have set the response header - "pragma" to public and "cache-control" to public. I've also unchecked the Do not save encrypted pages to disk setting in IE Options, Advanced tab.
    Has anyone come across this problem or a similar problem. Any help is appreciated. Thanks.

    I have a URL from a jsp page which points to a struts action servlet. This works with firefox via http and https. With IE it works via http but it doesn't work via https. The error message I get is "Internet Explorer cannot download ...File_name.doc from Server_name.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
    Here is my code.
    public ActionForward execute(ActionMapping mapping, ActionForm form,
                   HttpServletRequest request, HttpServletResponse response)
                   throws Exception {
              String attachmentURL = AppSettings.get("EAIAttachmentURL");
              String encodingScheme = AppSettings.get("EAI_encoding");
              String filename = request.getParameter("URL");
              String fileStr = URLEncoder.encode(filename, encodingScheme);
              fileStr = fileStr.replaceAll("\\+","%20");
              URL targetURL = new URL(attachmentURL + "/" + fileStr);
              URLConnection connection = targetURL.openConnection();
              connection.setDoInput(true);
              connection.setDoOutput(false);
              connection.setAllowUserInteraction(false);
              BufferedInputStream attachmentStream = new BufferedInputStream(
                        connection.getInputStream());
              * Setting the content disposition filename, so that the
              * attachment preserves the original filename
              response.setHeader("Content-Disposition",
                        " attachment; filename=" + filename);
              if (connection.getContentType() != null) {
                   response.setContentType(connection.getContentType());
              else {
                   response.setContentType("application/octet-stream");
              response.setContentLength(connection.getContentLength());
              response.setHeader("Pragma", "public");
              response.setHeader("Cache-Control", "public, max-age=-1, must-revalidate");
              if ( connection.getContentEncoding() != null ) {
                   response.setHeader("Content-Encoding",
                             connection.getContentEncoding());
              BufferedOutputStream responseStream = new BufferedOutputStream(
                        response.getOutputStream());
              byte[] buffer = new byte[4096];
              int bytesRead;
              try {
                   while ((bytesRead = attachmentStream.read(buffer)) != -1) {
                        responseStream.write(buffer, 0, bytesRead);
              } catch (Exception e) {
                   log.error("AttachmentProxy error: " + e.getMessage());
              } finally {
                   if (attachmentStream != null) {
                        attachmentStream.close();
                   if (responseStream != null) {
                        responseStream.flush();
                        responseStream.close();
              return null;
    There is a bug with IE when downloading via https according to Microsoft support site. Refer to http://support.microsoft.com/default.aspx?scid=kb;en-us;812935
    According to this bug, I have set the response header - "pragma" to public and "cache-control" to public. I've also unchecked the Do not save encrypted pages to disk setting in IE Options, Advanced tab.
    Has anyone come across this problem or a similar problem. Any help is appreciated. Thanks.

  • How to upload large file with http via post

    Hi guys,
    Does anybody know how to upload large file (>100 MB) use applet to servlet with http via post method? Thanks in advance.
    Regards,
    Mark.

    Hi SuckRatE
    Thanks for your reply. Could you give me some client side code to upload a large file. I use URL to connect to server. It throws out of memory exception. The part of client code is below:
    // connect to the servlet
    URL theServlet = new URL(servletLocation);
    URLConnection servletConnection = theServlet.openConnection();
    // inform the connection that we will send output and accept input
    servletConnection.setDoInput(true);
    servletConnection.setDoOutput(true);
    // Don't used a cached version of URL connection.
    servletConnection.setUseCaches (false);
    servletConnection.setDefaultUseCaches(false);
    // Specify the content type that we will send text data
    servletConnection.setRequestProperty("Content-Type",
    +"application/octet-stream");
    // send the user string to the servlet.
    OutputStream outStream = servletConnection.getOutputStream();
    FileInputStream filein = new FileInputStream(largeFile);
    //BufferedReader in = new BufferedReader(new InputStreamReader
    +(servletConnection.getInputStream()));
    //System.out.println("tempCurrent = "+in.readLine());
    byte abyte[] = new byte[2048];
    int cnt = 0;
    while((cnt = filein.read(abyte)) > 0)
    outStream.write(abyte, 0, cnt);
    filein.close();
    outStream.flush();
    outStream.close();
    Regards,
    Mark.

  • Problem(!?) with SIP VIA Field

    Hello,
    i'm trying to create a OK message in my Class, which implements the javax.sip.SipListener.
    In the sip header exists only one Via-Field with 2 via-entries one after the other, splitted with "," .
    Wireshark shows this as follow:
    Via: SIP/2.0/UDP SIPSRVIP;branch=...xyz, SIP/2.0/UDP CLIENTIP;rport=CLIENTPORT;branch=...zyx
    In other messages the via-fields exist seperatly, also messages generated by x-lite are with 2 seperate via fields. I couldn't find any information in rfc, if that is right.
    Is that also right ?
    Has someone an idea ?
    Regards,
    Taner
    Source code, how i create this Response:
    public void processRequest(RequestEvent evt) {
            Request req = evt.getRequest();
            Response res = messageFactory.createResponse(200, req) ;
            evt.getServerTransaction().sendResponse(res);
    }

    Note: This thread was originally posted in the [Java Media Framework|http://forums.sun.com/forum.jspa?forumID=28] forum, but moved to this forum for closer topic alignment.

  • LSO integration with Skillsoft via PI - Please help

    Hello All,
    I am working on LSO integration with Skillsoft via PI. I have already referred the PDF XI Configuration for SkillSoft Integration and also referred to the existing discussion posts in SDN
    The flow of interface in my scenario is
    Portal(FrontEnd) <-> ECC(BSP Application at Backend) <-> PI <---> External Learning Vendor(SkillSoft).
    1) Commnication is from SAP LSO System to Third Party(Skill Soft) through PI(XI).
    2) It will be synchronous call.
    3 ) From portal user should be able to register, book,Lauch, or Track the course and will get response back to SAP LSO system/portal from Skill Soft.
    4) Portal is the frontend and backend is the BSP application(ZHCM_Learning).
    Can you please let me know the details how to handle this scenario and pass the parameters like customerid, assetid,courseid etc to PI(XI). Also let me know what would be the best approach to follow in this scenario..Is there any BAPI / RFC available for this scenario or need to go via proxy.
    If we need to go via proxy.. how to pass data to PI as soon as user clicks on any actions(like registering/launching or booking the course) from portal. BSP is the backend application(ZHCM_Learning). Please guide me if someone has already implemented the similar scenario.
    Thanks
    Shikha

    Does not belong here. Try posting it in BPX or the related functional community.
    VJ

  • Resultant user authorization of t-codes with a common Auth. Object

    Hi,
    I'm re-posting this question because the first time it was rejected and according to the Rules of Engagement, it seems it's because I did not post my photo, however, dear Moderator, if for any other reason, I mean not to be indecent, kindly let me know if there's anything violating the content rules.
    I'm trying to control access to t-code AS02 using Asset Views (Auth. Object A_A_VIEW), so while looking around I noticed that this Object A_A_VIEW is present in other t-codes/roles assigned to some users.
    My question is (pardon my basic terminology), if a I create a role that has a t-code with certain authorization values defined in its Authorization Objects, and assigned it to a user that has those Authorization Objects in his profile but from totally different t-codes in different roles, will the most explicit/resultant authorization take precedence in all the t-codes? or will the t-codes be accessed as per the authorization provided in their respective roles?

    Hi  Saleh
    Lack of photo would not have been the reason.
    Is SAP security your background? What do you know of generated profiles, user buffer and the concept of cross-inheritance (or cross-talk)?
    If you are asking if a user has Transaction AS02 from one role and A_A_VIEW from another would they be authorised or not then that is a basic question (fundamental of SAP authorisation concept). Basic questions are not allowed in SCN as you can obtain the answer via searching, sap help and basic training.
    If you are trying to understand some specifics of the A_A_VIEW authorisation that the SAP Help (and also IMG configuration for Asset Views) did not provide then you might need to clarify your question.
    Regards
    Colleen
    Ps - I did alert the moderator to your question as I thought it was basic question relating to the SAP authorisation concept that is covered in SAP help, Google and the ADM940 training course.

  • Interface freeze issue with Flash Projector

    I am facing an interface freeze issue with Flash Projector running a flex state based application. A Flash Projector exe was generated from a standalone flash player ver 10.2. The target machine on which the problem occuresd has 10.3.
    Basically "screen freeze" means that the user interface is running as usual on Flash Player, but it's not responding to any user input (like button presses). But if we alt-tab to another application, the state changes in the Flash player. There is display with buttons on the screen, but touching the buttons or doing anything else - it did not respond.  Rebooting the computer fixes the problem.
    Can you suggest why this is happening? Is there any known bug in Flash Player.
    The problem is this is being hard to reproduce on the developer workstation as it doesn't happen always. But it happens quite often on the target machine running an Intel Atom N270. What debugging steps can you suggest?
    Problem Description : http://www.youtube.com/watch?v=z25oV9QWRyk

    First, thanks for the video.  Having this always makes it much easier to understand the problem.  A couple of recommendations.  First, if you feel like this might be a player bug, please add a new bug report over at bugbase.adobe.com and if possible please include any sample code or swf's that can help us reproduce the problem internally.  Linking the video would also be great.  In addition, would you mind reposting this question over on the Flash Professional forums?  This forum is primarily for end users, the Pro forums will get you in touch with a wider developer audience who might have additional feedback.
    Thanks,
    Chris

  • How to deactivate tax code with transport request

    Hi expert
    We would like to deactivate tax code with transport request instead of manual on production.
    Do you know how to?
    Thanks in advance.
    Great

    Hi,
    You need to do below:-
    (1) Deactivate the tax line in test system
    (2) Then create a transport request via Export feature in FTXP
    (3) Open your target system and then import the transport request via import feature in FTXP.
    Then the tax code will get deactivated line in target system also.
    Regards,
    SDNFICO

  • Nokia 6600 connection with pc via serial port

    Hello friends
    I want to connection my nokia 6600 via the serial port, or infrared, to a pc. How can I do this? I have made a test with the CommConnection Interface, but it doesn�t work, it gives a port not found exception. Who can help me?
    Thanks tritonman

    Thanks a lot, but you now a phone which supported the completely CommConnection Interface to communicated with a pc over the serial port?
    Thanks tritonman

  • How can I use the QR codes with my iPad 2. do I need to download first an app ?

    How can I use the/read the QR codes with my iPad 2 ? Do I need to download an app ?

    Yes.  There are quite a few available for free in the app store

  • GR/IR clearing report code with gl a/c

    hi experts,
    anyone have gr/ir clearing report code with gl a/c
    Moderator message - Please ask a specific question. Don't just post vague requirements hoping that someone will take care of them for you - post locked
    Edited by: Rob Burbank on May 22, 2009 9:37 AM

    go throw below link
    Re: gr/ir clearing account?

Maybe you are looking for

  • Error message when installing the latest version of itunes

    I tried installing the latest version of iTunes and received an error message.  Asked to reinstall, but still doesn't work.  I receive Windows Error 127 and AdiAdID_AcuireMatchSlotIfNecessary error messages.

  • Even and Odd pages PO

    I have to create a po print on both sides. The odd pages have the po but the odd pages have condition terms, is there a way in xml publisher to do this. Can I test on page number, or can I set default text for odd pages ? Thanks for your help

  • Using pages, I saved the wrong file thereby overwriting the file I want.  Is there any way to get the file I want back?

    Is there any way to recover a file if you have overwritten it?

  • Palm vx desktop on windows 7 32 bit

    Hello, I have installed PalmOne desktop ("PalmDesktopWin414EN (1).exe") on my laptop - windows 7 32-bit. However, I can't create a new user ("couldn't add user.. illegal user name.. user directory couldn't be created")  and unable to synch it. How ca

  • Erratic Wifi Behavior

    I'm not sure if this is something specific to my setup or something that persists in general; but my wifi behaves very oddly. Here is the situation in it's entirety: The iPod touches listed below and for the conditions listed below successfully conne