Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Block "PlaneAtParameter" daily 7.5.3242 #3228

Closed
epeter- opened this issue Nov 22, 2014 · 10 comments
Closed

Code Block "PlaneAtParameter" daily 7.5.3242 #3228

epeter- opened this issue Nov 22, 2014 · 10 comments

Comments

@epeter-
Copy link

epeter- commented Nov 22, 2014

in previous releases i used:
C.PlaneAtParameter(0..1..#10);

in actual daily builds the function is not consistant.
in one definition it is available in an other it is not recognized.
if fed from another Code Block the function works as expected.
if you select a model element - convert it to curves - the function works but only creates 1 plane and not 10 as it should.
using the same definition from a codeblock's definition of a line the result is 10 planes
codebl1

@monikaprabhu
Copy link
Contributor

@epeter Please post your files

@epeter-
Copy link
Author

epeter- commented Nov 25, 2014

hi i stripped to the minimum.
selected curve is an arc.
peter

Am 25.11.2014 09:35, schrieb monikaprabhu:

Please post your files

Reply to this email directly or view it on GitHub [1].

Links:

[1]
#3228 (comment)


<Dynamo.Nodes.DSModelElementSelection type="Dynamo.Nodes.DSModelElementSelection" guid="1fabcacd-672b-4cbb-ad50-6f40f02810ea" nickname="Select Model Element" x="2872.68589792204" y="1764.19832461562" isVisible="true" isUpstreamVisible="true" lacing="Disabled">

</Dynamo.Nodes.DSModelElementSelection>
<Dynamo.Nodes.DSFunction type="Dynamo.Nodes.DSFunction" guid="d2daedaa-1d7a-4cda-b779-3467ba076b61" nickname="Element.Curves" x="3119.86381698069" y="1936.17415033353" isVisible="true" isUpstreamVisible="true" lacing="Shortest" assembly="RevitNodes.dll" function="Revit.Elements.Element.Curves" />
<Dynamo.Nodes.CodeBlockNodeModel type="Dynamo.Nodes.CodeBlockNodeModel" guid="fb83ee96-4981-4637-a40c-73182fa45065" nickname="Code Block" x="3154.91082566544" y="1686.84188403558" isVisible="true" isUpstreamVisible="true" lacing="Disabled" CodeText="C.PlaneAtParameter(0..1..#20);" ShouldFocus="false" />


<Dynamo.Models.ConnectorModel start="1fabcacd-672b-4cbb-ad50-6f40f02810ea" start_index="0" end="d2daedaa-1d7a-4cda-b779-3467ba076b61" end_index="0" portType="0" />
<Dynamo.Models.ConnectorModel start="1fabcacd-672b-4cbb-ad50-6f40f02810ea" start_index="0" end="fb83ee96-4981-4637-a40c-73182fa45065" end_index="0" portType="0" />


@sharadkjaiswal
Copy link
Contributor

seems to be working fine in latest daily build.

image

@sharadkjaiswal
Copy link
Contributor

Also for arc
image

@epeter-
Copy link
Author

epeter- commented Nov 25, 2014

beware! function calls from a code block work. no matter if building a line or an arc.
if you select a revit model element the function fails.
today's build

@sharadkjaiswal
Copy link
Contributor

I think I got your problem, when the curve is a collection, then this method doesn't work because it uses smallest lacing and hence creates one curve. If you use Curve.PlaneAtParameter node and cross lacing, you will get the correct result.

@epeter-
Copy link
Author

epeter- commented Nov 25, 2014

i changed to:
"Select Model Element" - "Element.Curves" - "C.PlaneAtParameter(0..1..#20)"

not giving an error message but only creating 1 plane not 20 as expected

@sharadkjaiswal
Copy link
Contributor

Yes there won't be an error. If you use the item at index 0 to connect to PlaneAtParameter, it will work fine. It's an issue of replication where we can't apply replication guide on object instance. @lukechurch PTAL.

image

@epeter-
Copy link
Author

epeter- commented Nov 25, 2014

so we need lacing options in code blocks?!

@monikaprabhu
Copy link
Contributor

@epeter- I just tried this and it works with replication guides.
rep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants