0 Replies Latest reply on Jul 15, 2015 10:35 AM by Ruchit Solanki

    API HELP REQUIRED

    Ruchit Solanki

      MY SELF RUCHIT SOLANKI, I HAVE THE BASIC IDEA OF API. I KNOW HOW TO USE USERFORM, SKETCH MANAGER CLASS AND FEATURE MANAGER CLASS.

       

      I HAVE CREATED A SIMPLE CYLINDER MACRO WHICH USES USERFORM TO CREATE A CYLINDER OF REQUIRED DIAMETER AND LENGHT. SO I RUN CYLINDER MACRO IT ASKS FOR  DIA  AND LENGTH AND CREATES A CYLINDER AT ORIGIN AS WE HAVE USED CO-ORDINATE OF ORIGIN (0#, 0#, 0#) WHILE WRITING A API. NOW MY QUERY IS THAT HOW CAN I CREATE A CYLINDER AT DESIRED SKETCH POINT  SO THAT WHEN I CLICK AT ANY SKETCH POINT A CYLINDER GET CREATED AT PARTICULAR POINT.

       

      AS PER MY BASIC KNOWLEDGE, I MUST WRITE A MACRO WHICH ASK ME TO CLICK AT DESIRED SKETCH POINT SO THAT MACRO FETCHES THE CO-ORDINATES OF THAT SKETCH POINT AND SEND IT TO CREATECIRCLE CO-ORINATES. BY THIS IT WILL CREATE A CIRCLE AT DESIRED POINT.

       

      HOW AM I SUPPOSED TO FETCH THE CO-ORDINATES SO THAT MACRO USES IT INTO CREATE CIRCLE FOR ORIGIN.

       

      HOW I SHOULD CUSTOMIZE USER FORM WHICH ASK ME TO CLICK ON SKETCH POINT AND USES THE CO-ORDINATE OF IT TO USE INTO CREATE CIRCLE CO-ORDINATES.