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

Dynamic blocks #486

Merged
merged 27 commits into from
Jan 4, 2025
Merged

Dynamic blocks #486

merged 27 commits into from
Jan 4, 2025

Conversation

DomCR
Copy link
Owner

@DomCR DomCR commented Nov 7, 2024

Description

Open investigation for the dynamic blocks in the dxf format.

This PR is the first step to implement the dynamic block properties, control over the EvaluationGraph and improve for the existing BlockVisibilityParameter.

In order to split the work in small and controlled PRs and avoid issues and errors the other dynamic properties will be implemented/explored in separated PRs.

  • BLOCKLINEARPARAMETER
  • BLOCKLINEARGRIP
  • BLOCKGRIPLOCATIONCOMPONENT
  • BLOCKSCALEACTION
  • BLOCKVISIBILITYGRIP
  • (...)

Tasks done in this PR

  • Get the Evaluation Graph from a dynamic block from the BlockRecord.
  • Get all the anonymous blocks created from a dynamic block.
  • Create the tree classes for the dynamic block parameters.

@DomCR DomCR linked an issue Dec 7, 2024 that may be closed by this pull request
@mme1950
Copy link
Contributor

mme1950 commented Dec 29, 2024

Hi @DomCR,
please have a look at this piece of formatted DXF:

0   S BLOCKFLIPPARAMETER
5	H	7F959
330	H	7F953
100	S	AcDbEvalExpr
90	BL	6
98	BL	33
99	BL	329
100	S	AcDbBlockElement
300	S	Umkehren
98	BL	33
99	BL	329
1071	BL	0
100	S	AcDbBlockParameter
280	BS	1
281	BS	0
100	S	AcDbBlock2PtParameter
1010	BD	-0.0000000001218723
1020	BD	50.80278554897086
1030	BD	0.0
1011	BD	-0.0000000001218723
1021	BD	109.8133196764683
1031	BD	0.0
----
170	BS	4
91	BL	7
91	BL	0
91	BL	0
91	BL	0
171	BS	0
172	BS	0
173	BS	0
174	BS	0
177	BS	0
----
100	S	AcDbBlockFlipParameter
305	S	Umkehrstatus1
306	S	
307	S	Nicht umgekehrt
308	S	Umgekehrt
1012	BD	-17.54898980138068
1022	BD	108.2007882010403
1032	BD	0.0
309	S	UpdatedFlip
96	BL	7
1001	S	ACAUTHENVIRON
1010	BD	23.1286989982713
1020	BD	27.67408655057769
1030	BD	0.0

The part between the dashed lines may have to be added to the Block2PtParameter class. The 170 seems to be the number of following 91s.

@mme1950
Copy link
Contributor

mme1950 commented Dec 29, 2024

Hi @DomCR,
the GraphNode.NodeObject property should be of type EvaluationExpression and should be named accordingly.

@DomCR DomCR merged commit 0d0db03 into master Jan 4, 2025
4 checks passed
@DomCR DomCR deleted the dynamic-blocks branch January 4, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Read EVALUATIONGRAPH and BLOCKVISIBILITYPARAMER
2 participants