×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to read variables in Excel from Solid edge

How to read variables in Excel from Solid edge

How to read variables in Excel from Solid edge

(OP)
I have problem for readying a defined variable in the Solid edge in Excel.

I can not access to the variable from Vb of Excel.

For editing a variable this code for example is ok:
Call objVariables.Edit("Var_1", 0)
I want some way similar to get the value of a variable for example some function like:
Var_value= objVariables.GetValue("Var_1")

Please if you know help me.

Thank  you in advance

RE: How to read variables in Excel from Solid edge

(OP)
I found one trick for this solving this problem.
In the variable table of the Solid edge, right click on the variable then select copy link. on a sheet in an Excel file which you are running the macro right click on a cell and select paste special..., then select paste as a link.
Now you have the value of the variable in your Excel file, you are able to access to this cell by VB in macro.

  

RE: How to read variables in Excel from Solid edge

(OP)
I found the way to read, wanna share with u. In case use it.
If u want a variable in Vb from SolidEdge just use the following

MsgBox (objVariables("aRotore").Value)
* take care angle is in radiant, distance in meter.

If u want to change a variable in SolidEdge via Excel Vb

Call objVariables.Edit("Blocco", "0")

Thanks to http://www.cad3d.it/forum1/archive/index.php/t-7759.html
for great help.

r


 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources