Scripted Objects [ArchWall Testing] - Add MapMode + Attachment Offset?

Need help, or want to share a macro? Post here!
Post Reply
paullee
Veteran
Posts: 4866
Joined: Wed May 04, 2016 3:58 pm

Scripted Objects [ArchWall Testing] - Add MapMode + Attachment Offset?

Post by paullee »

Hi, I find simple Line or Dwire objects have MapMode similar to Sketch, but seem most Arch Scripted Objects do not.

Simple ObjectXY + Attachment Offset is already very useful.

Any method to add this 'feature' 'functionality' to python scripted objects?

Thanks for any idea!
Last edited by paullee on Thu Aug 02, 2018 11:19 pm, edited 3 times in total.
ickby
Veteran
Posts: 3118
Joined: Wed Oct 05, 2011 7:36 am

Re: Scripted Objects - Add MapMode + Attachment Offset?

Post by ickby »

Attachment is an extension. You can add this extension to any object via python or c++ code. I don't have a example ready, but if you search around with that buzzword you shold find some implementations. I think DeepSOIC has in his workbenches (Lattice?) some examples of this.
paullee
Veteran
Posts: 4866
Joined: Wed May 04, 2016 3:58 pm

Re: Scripted Objects - Add MapMode + Attachment Offset?

Post by paullee »

Thanks!

It happens Oddtopus also pointed to something called AttachExtensionPython and collect a few link some of which are your posts!

I haven't dug into the technicality of the documents yet as it looks way far from my knowledge level at a glance... would have the courage to attempt reading them first anyway :)
paullee
Veteran
Posts: 4866
Joined: Wed May 04, 2016 3:58 pm

Re: Scripted Objects [ArchWall Testing] - Add MapMode + Attachment Offset?

Post by paullee »

Oddtopus's info lead me to the thread with discussion between clarkitect and you, yes almost a tutorial and it seems simple to start with.

I try ArchWall and it seem working... I am posting some images here and may post a link there to update the discussion a little bit. (Should somebody combine this as I am not aware there had been discussion?)

Thanks again!

ArchWall on Dwire
Screenshot from 2018-08-03 07-08-43.png
Screenshot from 2018-08-03 07-08-43.png (211.9 KiB) Viewed 1058 times

Now...

ArchWall Attached to a Circle (ObjectXY)
Screenshot from 2018-08-03 07-08-59.png
Screenshot from 2018-08-03 07-08-59.png (200.98 KiB) Viewed 1058 times
User avatar
DeepSOIC
Veteran
Posts: 7900
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Scripted Objects [ArchWall Testing] - Add MapMode + Attachment Offset?

Post by DeepSOIC »

Why do you think attachable wall is useful?
You can either attach the base profile of the wall (e.g. a sketch), or attach a clone of the wall...
I have serious doubts about usefulness of attachment of non-primitive objects. It is more of assembly job. Attachment doesn't have "attach by" feature yet.

See Lattice PartDesign Pattern tutorial, it may give you an idea of what I'm talking about. Two attachments are used there, one to define "attach-by" (a reference placement), and another to define "attach to" (an array of placements in the tutorial).
paullee
Veteran
Posts: 4866
Joined: Wed May 04, 2016 3:58 pm

Re: Scripted Objects [ArchWall Testing] - Add MapMode + Attachment Offset?

Post by paullee »

DeepSOIC wrote: Sun Aug 05, 2018 10:59 am Why do you think attachable wall is useful?
You can either attach the base profile of the wall (e.g. a sketch), or attach a clone of the wall...
I have serious doubts about usefulness of attachment of non-primitive objects. It is more of assembly job. Attachment doesn't have "attach by" feature yet.

See Lattice PartDesign Pattern tutorial, it may give you an idea of what I'm talking about. Two attachments are used there, one to define "attach-by" (a reference placement), and another to define "attach to" (an array of placements in the tutorial).
I try some Lattice2 WB / tutorial sometime ago which is impressive indeed... unfortunately have little time at the moment to dig in further... and not found yet a usecase for modeling a building... Trying to get what do it mean by 'attach-by' in your latest tutorial...

BTW, not really sure what exactly to be done by the Attachment extension, just try it with one of the object ArchWAll that I am familiar in FC.

Anyway, as clarkitect point out, clone is a workaround but probably not as handy as with it 'build-in'.

Any thinking usage like for a building with repetitive / varied units 'attaching' to a central core...

Screenshot from 2018-08-07 01-04-51.png
Screenshot from 2018-08-07 01-04-51.png (179 KiB) Viewed 993 times
Post Reply