Hi,

I am wondering if there is a way to assign an area to a sketch so that i can dimension everthing but one line which would change to satisfy the area requirement.

Thanks a bunch...

Hi,

I am wondering if there is a way to assign an area to a sketch so that i can dimension everthing but one line which would change to satisfy the area requirement.

Thanks a bunch...

thanks for the quick replies guys...

Jeremy,

I tired that so that the last dimension is an equation but it does not work... Maybe i gave up too early...

Scott,

That does give me the area but it is not "tweakable" what if i wanted an exact 1.523123123123 square inch area... it would drive me insane trying to guess each time...try this - i set it up so that all of the other dims in the sketch can be edited - not sure that that is the design intent.

limitations of this method are 2, 1) equations are not allowed to return a negative number, 2) some sets of input will lead to an invalid sketch - either zero length items or over-lapping items.

oops - forgot to attach the part...

Message was edited by: Jeremy Feist

Did you tried using Sensors

Sensors monitor selected properties of parts and assemblies and alert you when values deviate from the limits you specify.

Depak - i looked into sensors but they only adress surface area of the whole part. even if i could get it to warn me about the sketch area - it still means going back to the sketch and playing around with the dimensions until you get it just right...

Scott - you are right that may be the only way but not the way...

Jeremy - i played around with the equations last night and they are good for simpler objects like the one you have... but what about the one i have attached... I am exegarating but really... my sketch (i cannot post it here) is a bit complex...

You could do it using the API and Excel's Solver.

The API calculates the area and puts the value in a cell. The required area and dimension value go in other cells. The Excel solver iterates by changing the dimension cell. The macro changes the dimension in SolidWorks and calculates the area and places it in the cell. The solver checks the calculated value vs. the required value. The process continues until the solver converges on the solution.

I have an example of of a similar solving a similar problem using the API and Excel Solver to calculate the volume. Here is link to YouTube video

http://www.youtube.com/user/wlmatus#p/a/u/0/3GC4nwdmCMY

SolidWorks 2011 and Excel 2007 sample files of the video are on my web site.

the only way I know to do that would be to have the dimension for the last line driven by an equation populated with the other dims from the sketch. you would need to come up with the equation yourself.