Multiple Declaration Warning

mahir
mahir Member, Developers Posts: 1,324 ✭✭✭✭✭
I resumed working on a FS I started a while back, and all of a sudden I'm getting a bunch of strange "multiple declaration" messages in the precondition attached to bound specs. As far as I can tell, there are no duplicate declarations. It's akin to getting flagged for having more than one integer variable, even though they have different names.

https://cad.onshape.com/documents/b31fa08a0fb478e2ec21edc4/w/97c384646af3940a5d60dc28/e/d4f313528a2e81f86b81914b

Best Answers

Answers

  • mahir
    mahir Member, Developers Posts: 1,324 ✭✭✭✭✭
    edited June 2018
    seems like you imported multiple tabs which possibly both include imports of those types and constants
    I thought it might have something to do with the import, but the errors remain even if I remove the imported FS.

    Edit: Nope, I stand corrected. Removing the import fixes that particular error. How can I import someone else's FS without repeating their geometry.FS import?
  • mahir
    mahir Member, Developers Posts: 1,324 ✭✭✭✭✭
    Duh  :s Yeah, that works. Although, I'd prefer to control my own imports and not be at the mercy or someone else's imports. Also, what if I had to import multiple custom FS? There should be a way to account for redundant imports, no?
  • konstantin_shiriazdanov
    konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    mahir said:
    There should be a way to account for redundant imports, no?
    it should be ok untill those imports doesn't export their imports :D. we should ask @mbartlett21 for his reason to export geometry.fs
  • mahir
    mahir Member, Developers Posts: 1,324 ✭✭✭✭✭
    @mbartlett21, I'm finally getting back to the 3D Point FS we discussed a while back and am planning to use your opBoolean FS for intersections as you suggested. Can you unexport your geometry.fs import so opBoolean works better as a reference library FS?
  • konstantin_shiriazdanov
    konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭
    you can also use my Point on path snippet for your ALONG_CURVE option

  • mahir
    mahir Member, Developers Posts: 1,324 ✭✭✭✭✭
    you can also use my Point on path snippet for your ALONG_CURVE option

    Nice. Thanks :#
  • MBartlett21
    MBartlett21 Member, OS Professional, Developers Posts: 2,064 ✭✭✭✭✭
    mahir said:
    There should be a way to account for redundant imports, no?
    it should be ok untill those imports doesn't export their imports :D. we should ask @mbartlett21 for his reason to export geometry.fs
    @konstantin_shiriazdanov
    @mahir


    It was for some enums that I used (BooleanOperationType and TopologyMatchType).

    It should be fixed now (Please update to V2.1)
    mb - draftsman - also FS author: View FeatureScripts
    IR for AS/NZS 1100