User Parameter - How to apply a User Parameter x number of times depending upon changes to another User Paramenter - fusion360

In coding this can easily be accomplished with a conditional loop and/or a custom function. But how would this be done in Fusion360?
What if I created a parametric design of a drawer having dovetails. How would the number of dovetails be increased or decreased based on a changing User Parameter? For example, changing the dimension of the User Parameter of Height from 5" to 8" - how can this also increase the number of dovetails on each side of the drawer?
Say I've created a drawer with several User Parameters used for creating the dimensions of the drawer - (Width, Height, & Depth). The drawer's four sides - (face, right, left, back) are created as separate components and are then given dimensions from the User Parameters.
Any change to the dimension of a User Parameters is then parametrically applied to the dimensions of each of the four sides of the drawer. For example, a change in dimension of User Parameter, Height, then changes the heights of all four sides of the drawer. Those other dimensions derived from the unchanged User Parameters (Width and Depth) remain the same.
Next the dovetails are created. The easiest way is to create a single dovetail by dimension. Once create, the dovetail can be easily placed on the ends of each all four sides. But then what?
It's much trickier to create User Parameters for the dimensions of the dovetail - including the distance between dovetails. It's completely unknown how to create x number of dovetails- with that number being dependent upon the height of the drawer.

For this you can use functions for rounding (round, floor, ceil)
Here is an example https://a360.co/2UimVKh

Related

Unreal Engine 5 Puzzle Example Block Spacing has no effect

I've recently begun toying with Unreal Engine (UE5 Early Access) and I started with the Puzzle Example Template. In the PuzzleBlockGrid blueprint, there is a variable called BlockSpacing that is used to calculate the (X,Y) coordinates a block before spawning it.
This is the blueprint.
I collapsed the logic for calculating the position to tidy up the graph a bit. I've highlighted the path to the variable in question.
Changing the value of Block Spacing has no effect on the placement of the blocks. I have verified this by printing the calculated values to the screen (not shown in pictures). I have tried changing Block Spacing to a wide range of values (10^10, 1, 0, 10^-10, -100: Default was 400). No matter the value entered, the calculated values are always the same. The only way I could get a different result is to bypass the Block Spacing and Multiply nodes; in which case, all positions are calculated to be (0,0).
Am I missing something?
Just FYI the calculated coordinates that I get are:
I realized that this is happening because Block Spacing is public and the value was set in the level map's viewport editor details pain, which overrides the initial value set in the blueprint.

Set static height for bar chart using SSRS

I have a bar chart and the business has requested that I set the height for each bar at a static height i.e. 40 for the entire result set and then have the data labels displayed above the bar.
How can I set the output to a static height for each bar for the entire chart?
It looks like setting the maximum on the Axis plays silly games with the data labels so - as with most things SSRS - lets get creative!
Create your chart as normal.
Open up your Series Properties and change your Series Data Value Field to =iif(<Your column value expression here> > 40, 40, <Your column value expression here>). This will max out your columns at 40.
Open up your Series Label Properties and change the Label Data to =<Your column value expression here>. This will show the true value in your Data Label.
******************************** Alternatively *******************************
you could just enable Scale Breaks on your vertical axis and see if the business likes the look of that as, I would imagine from experience, what they actually want is more visibility on the difference between the smaller columns that are dwarfed by your Oct 10 column and not a pointless column chart where comparison is impossible without manually reading a load of figures.

SSRS range chart series labels overlap and do not align left

I have built a "gantt" style range chart in SSRS using Narayana Palla's model. I am using date parameters to view the data by a date range - my dataset is museum exhibitions over a number of years. I have opted to use the DrawSideBySide = false custom attribute to display series data but I can not position the series labels as I want. I want them to align left however they align right and overlap with each other. I have tried many different combinations of properties including the smartlabel properties but can not impact on the position of the labels in the series. I have not been able to find a solution in my searching.
I would be happy to have my series displayed using DrawSideBySide = true but the bars are so narrow that neither they nor their labels can be seen. Again I have tried many combinations of properties to set the width of the bars but to no avail. I believe this is due to the number or series in the whole of my chart / dataset.
I would like advice on :
1. How to adjust the position of the labels in the series OR
2. How to fix the width of the series bars so that I can see them on my chart OR
3. If I am right about the size of the data set making the bars miniscule how can I best resolve this - say group on year so that only a limited (and therefore hopefully wide) set of series bars appear at a time from page to page.
Very grateful for any assistance, Sally
In SSRS, for the label overlapping issues, the only way is manually changing the chart area size to make enough space for those labels. Otherwise we have change an appropriate chart type.

SSRS - How to align the vertical axis of 2 chart areas on the one chart

I have basically loosely followed this link
http://www.angelsbiblog.com/2012/02/improve-data-visualization-in-your-ssrs.html
and made the below linked graph. Its one dataset, I have simply pulled in Gross Profit and Sales fields. Neither are calculated fields. I put them in 2 different chart areas, but then as per that link, made the chart areas the same size so they overlay.
*Apologies for a photobucket link instead of inserted image but I don't have 10 reputation points to be able to insert images.
http://i1375.photobucket.com/albums/ag447/AndrewJacksons/IncomeandProfit_zpse074ac02.jpg
what I want to do, is as illustrated by that inserted green arrow in the graph image, is raise up the Zero line for the Income bars (yellow) to the same level as the Profit/Loss(Blue-Red).
I also want the vertical axis to preferably have the same axis, so i dont have to have that secondary axis on the right.
However the main thing is the graphs sharing their zero line. I have made the Profit bars smaller I width than the yellow bars, so in a month of blue profit, it would simply sit neatly inside the yellow income bar.
I haven't added expenses because it should be obvious what they are by the height differential btw Income to Profit or to the Loss.
Any ideas much appreciated.
I have just experienced this problem, but this page did not solve it.
Dan's answer ("simply set the minimum and maximum values for the vertical axes on both areas manually") came close, but did not solve the problem for me because I needed the axis to be automatically calculated. If the maximum of the two datasets is something like 193,456 then you get that exact value as a label on the axis rather than the sensible value of 200,000.
The solution is to allow SSRS to calculate the axis labels automatically but to trick it by using both sets of data in each chart. Then you hide the data set that you don't want the user to see.
In each chart I made the data series of interest a column chart and the other data series a line chart (without markers), as all you need to do is set the fill color for the line series to None. If you try the same with columns for the other series the invisible columns affect the position of the visible columns even if they have been set to zero width.
Make sure both series in the chart use the Primary Vertical axis. Go into properties for the Income series > Go to "Axes and Chart Area", and make sure that the series uses the primary vertical axis:

The width of a list that contains an embedded matrix grows unexpectedly

I have a report in reporting services 2005 that includes a list with an embedded matrix and am attempting to put a border on the list, however, when I run the report in visual studio the matrix is growing past the end of the page and therefore the border is growing with it causing it to grow into the second page. It appears that there was supposedly a fix for this in reporting services 2000 service pack 1 but I am still experiencing the issue in 2005.
The list has a details group that limits the records on a row to 4 using the following expression: =ceiling(rownumber("list1")/4), the matrix has a column group that should recycle those based on the rownumber determined by the list using the following expression: =rowNumber("list1_Details_Group")
I have also attempted to put the list in a rectangle in hopes to stop the matrix from growing to no avail.
How do I effectively stop the matrix form growing past the space allowed by the list control?
I found a solution to this.... the list was initially the width of the report which cause the boarder on it to grow that amount of space between the end of the matrix inside and the end of the list. If I make the list the size of the matix that is embedded it will be the size of the matrix after it grows to accomodate the neccessay values.
In terms of the border, if you want the boarder of the list to line up with the width of the report a few things need to be done. The size of the matrix columns that grow for each row must be exact where if there are 4 columns for each row the width of the matrix column is the width of the report / 4. In addition you must always have 4 columns of data for each row in the matrix. This can be accomplshed in the query by using the % (Mod) operator and adding additional records as needed.