• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

import quote from foglio excel

goccia

Guest
Hello.
I created a dwg file with 2d drawing and parametric quotas.
I would now like to be able to change these quotas from the outside, linking them to a excel sheet.
I tried to slew on the autocad tables, but I just managed to import the tables in the worksheet, without any links with the odds, as it affects me.
can you tell me how to create this link quota_autocad <-> cells_excel?
 
I doubt that autocad is capable of doing this. with inventor instead I'm sure you can
 
inventor si e autocad liscio no? excel solves the lack.
in the sheet you find two buttons, list and refresh parametric; the first writes the variables created in the dwg in excel, excluding those containing formulas, the other withdraws the values from excel and overwrites the variables in autocad thus allowing to change the parametric design.
you can avoid using listparametrics, just manually write the names of the variables you want to change, add the value and refresh.
the file has as reference of the autocad library 2018, provide you according to your version to change it.

I threw it down, if you have any problems, ask.

greetings
 

Attachments

This is what I would like to do:
Cattura.webpI do not work with inventor because the mechanism will remain in 2d, and with inventor, if I do not create a solid for every part in the table I see nothing.
beyond all I do not know how to create vectors that change according to the movements of the engine member, the disc crank.
 
Forgive me for the following post rpor66, but I handcuffed a bit on your file and I noticed the following:
list parametric takes variables (ok works)
refresh parametric overwrites the parametric variables of autocad only the first time, but returns the above-posted error.
Is there a way to always make it work?
Is it hard to give me directions to break the code? (years ago I knew a little vb4.0).
 
first of all thank you for this time you are dedicating.. .
Then...how does the ang1 variable not result?
It's important to be able to change the crank angle.

Cattura.webp
 
a request: can you make sure that only some variables are imported?
this because speed and acceleration values must be measured by excel after upgrading from geometry and
then I must be returned.

then:
1. premo list and get the list of variables (functions, compliments)
2. modify some variables
3. the other unmodified and that were a consequence of the previous geometry, will be passed, which should not happen.

ideal is therefore to be able to choose variables to import or refresh and make sure that list and refresh write in different cells or sheets.
 
ang1 does not take it because it is equal to 0 and in the code you wrote that it must be different from 0.
 
a request: can you make sure that only some variables are imported?
this because speed and acceleration values must be measured by excel after upgrading from geometry and
then I must be returned.

then:
1. premo list and get the list of variables (functions, compliments)
2. modify some variables
3. the other unmodified and that were a consequence of the previous geometry, will be passed, which should not happen.

ideal is therefore to be able to choose variables to import or refresh and make sure that list and refresh write in different cells or sheets.
1) correct, if it is a number is imported, before it was 0 the discarded.
2 and 3) change the variables do it on column c (new values), only the cells containing values will return in autocad, the empty ones will not.

if the values to be written in the column are resulting from calculation, add to the program the part of software that takes the data from column b, processes them and writes them in column c if different.

Hi.
 

Attachments

Good job. can you make sure that if on autocad, working, I add another variable and then I refresh, this on excel stands at the end and not in between? (this is because I get all the formulas in the sheet).
 
do not use listparametric, simply add the name of the column a variable, set the value in column c and use only refresh to change the value.
 
I can't do this because every time I pass a new angle geometry changes, so the new odds and I have to take these.
 
It is not that only reads two, reads only those that have as value a number, ang1 is a number + variable.
at the moment I can't read the variables users in parameter, so the value to be added in ang1 you have to manage it in excel.
practically, the value of the variable variation_angular eliminates it from autocad, the ang1 tops in excel.
 
Hello everyone, I make complents to the creator of the basic visual “linkparametric” is brilliant! I write to ask for help on the program. is it possible to insert even quotas with decimals?? because this version I have does not allow me to insert them!
 

Attachments

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.

Back
Top