AnsweredAssumed Answered

Equations in Assemblies (very slow)

Question asked by Berker Yurtseven on Apr 14, 2013
Latest reply on Apr 15, 2013 by Berker Yurtseven

Hi all,

 

I'm new to solidworks and using 2013 version. I'm using a 4 part assembly to build up a luminaire. I define:

 

1) A case

2) A glass cover

3) Lenses

4)  a PCB

 

I'm trying to use equations in my assembly. I define lens sizes (length, height, width) and a lens linear pattern (#of instances and distance between them), All of other dimensions are calculated using these values (case, glass cover and pcb size). Here are the relationships and global variables. But it takes more than 1 minute to change only one value from the equations dialog box.Closing the dialog box takes longer time.

I use a good computer with i7 processor, 16 gigs of ram, 2x128gb SSD Raid 0. Are they really slow, or do i have a problem with my solidworks?

 

Also is there a better way to control both part level and assembly level dimensions?

 

Thanks in advance.

 

I've attached my very basic draft version.

 

 

"lensEn"= 25

"lensBoy"= 25

"lensDerinlik"= 6.7

"lensBoy@Sketch1@lens-1.Part"= "lensBoy"

"lensEn@Sketch1@lens-1.Part"= "lensEn"

"lensDerinlik@Boss-Extrude1@lens-1.Part" = "lensDerinlik"

"lensYatayCogaltma"= 3

"lensDikeyCogaltma"= 3

"lensYatayAralik"= 100

"lensDikeyAralik"= 100

"lens2PcbBoy"= 50

"lens2PcbEn"= 50

"lens2lensYatayAralik@LocalLPattern1"= "lensYatayAralik"

"lens2lensDikeyAralik@LocalLPattern1"= "lensDikeyAralik"

"lens2lensYataySayi@LocalLPattern1"= "lensYatayCogaltma"

"lens2lensDikeySayi@LocalLPattern1"= "lensDikeyCogaltma"

"pcbEn@Sketch1@pcb-1.Part"= "lens2PcbBoy" * 2 + "lensEn" * "lensYatayCogaltma" + ( ( "lensYatayAralik" - "lensEn" ) * ( "lensYatayCogaltma" - 1 ) )

"pcbBoy@Sketch1@pcb-1.Part" = "lens2PcbEn" * 2 + "lensBoy" * "lensDikeyCogaltma" + ( ( "lensDikeyAralik" - "lensBoy" ) * ( "lensDikeyCogaltma" - 1 ) )

"lens2pcbBoy@Distance1"= "lens2PcbBoy"

"lens2pcbEn@Distance2"= "lens2PcbEn"

"pcb2kasaUst"= 50

"pcb2kasaYan"= 50

"D1@pcb2kasaEn"= "pcb2kasaUst"

"D1@pcb2kasaBoy"= "pcb2kasaYan"

"kasaEn@Sketch1@kasa-1.Part"= "pcb2kasaYan" * 2 + "pcbEn@Sketch1@pcb-1.Part"

"kasaBoy@Sketch1@kasa-1.Part" = "pcb2kasaUst" * 2 + "pcbBoy@Sketch1@pcb-1.Part"

"kasaEtKalinligi"= 5

"D1@Shell1@kasa-1.Part"= "kasaEtKalinligi"

"camBoy@Sketch1@cam-1.Part"= "kasaBoy@Sketch1@kasa-1.Part" + 2 * "kasaEtKalinligi"

"camEn@Sketch1@cam-1.Part" = "kasaEn@Sketch1@kasa-1.Part" + 2 * "kasaEtKalinligi"

Attachments

Outcomes